code: def _load_block(context, block_spec):
      if not isinstance(block_spec, pm.Block):
          raise TypeError("Invalid Block spec object")
  
      if block_spec.attributes:
          raise ValueError("Attributes on block not supported")
  
      block_outputs = block_spec.outputs
      output_vars = []
      for op_spec in block_spec.operations:
          _load_operation(context, op_spec)
  
      for proto_output_name in block_outputs:
          output_vars.append(
              context.get_var_from_name(proto_output_name)
          )
  
      pymil_block = curr_block()
      pymil_block.set_outputs(output_vars)
      return pymil_block
  
imports: import os
  import numpy
  from coremltools import _logger
  from coremltools.converters.mil._deployment_compatibility import AvailableTarget
  from coremltools.converters.mil.backend.mil import helper
  from coremltools.converters.mil.mil import Block
  from coremltools.converters.mil.mil import Builder
  from coremltools.converters.mil.mil import Function, ListVar, Placeholder, Program, TupleInputType, Var, mil_list, types
  from coremltools.converters.mil.mil.block import curr_block
  from coremltools.converters.mil.mil.ops.registry import SSAOpRegistry
  from coremltools.proto import MIL_pb2
  from coremltools.proto import Model_pb2
  from .helper import proto_to_types
label_desc: Use image node_id 11 for calling a global function with example usage: _load_block(context, block_spec) and returns: pymil_block