function createProcCallBlock(
  workspace,
  hasReturn = false,
  name = 'proc name',
) {
  return Blockly.serialization.blocks.append(
    {
      type: hasReturn ? 'procedures_callreturn' : 'procedures_callnoreturn',
      extraState: {
        name: name,
      },
    },
    workspace,
  );
}
Creates procedure call block using domToBlock call.
@param {!Blockly.Workspace} workspace The Blockly workspace.
@param {boolean=} hasReturn Whether the corresponding procedure definition
   has return.
@param {string=} name The name of the caller block
    (defaults to 'proc name').
@returns {Blockly.Block} The created block.