code: def _load_const_op(context, op_spec):
      inputs = {
          k: _load_value(context, v)
          for k, v in op_spec.attributes.items()
      }
      pymil_var = getattr(mb, op_spec.type)(**inputs)
      context.register_var_with_name(op_spec.outputs[0].name, pymil_var)
  
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 9 for calling a global function with example usage: _load_const_op(context, op_spec) without return types