code: def _get_proxy_and_spec(
      filename, compute_units, skip_model_load=False
  ):
      try:
          from ..libcoremlpython import _MLModelProxy
      except Exception:
          _MLModelProxy = None
  
      filename = _os.path.expanduser(filename)
      specification = _load_spec(filename)
  
      if _MLModelProxy and not skip_model_load:
          # check if the version is supported
          engine_version = (
              _MLModelProxy.maximum_supported_specification_version()
          )
          if specification.specificationVersion > engine_version:
              # in this case the specification is a newer kind of .mlmodel than this
              # version of the engine can support so we'll not try to have a proxy object
              return None, specification, None
  
          try:
              return (
                  _MLModelProxy(filename, compute_units.name),
                  specification,
                  None,
              )
          except RuntimeError as e:
              _warnings.warn(
                  "You will not be able to run predict() on this Core ML model."
                  + " Underlying exception message was: "
                  + str(e),
                  RuntimeWarning,
              )
              return None, specification, e
  
      return None, specification, None
  
imports: import atexit
  import os
  import shutil
  import tempfile
  import warnings
  from copy import deepcopy
  import numpy
  import numpy
  from coremltools import ComputeUnit
  from coremltools._deps import _HAS_TF_1, _HAS_TF_2, _HAS_TORCH
  from coremltools.converters.mil.mil.program import Program
  from ..proto import FeatureTypes_pb2
  from ..proto import MIL_pb2
  from ..proto import Model_pb2
  from .utils import _MLMODEL_EXTENSION, _MLPACKAGE_AUTHOR_NAME, _MLPACKAGE_EXTENSION, _MODEL_FILE_NAME, _WEIGHTS_DIR_NAME, _create_mlpackage, _has_custom_layer, _is_macos, _macos_version
  from .utils import load_spec
  from .utils import save_spec
label_desc: Use image node_id 1 for calling a global function with example usage: _get_proxy_and_spec(filename, compute_units, skip_model_load) and returns: None,  specification,  None, None,  specification,  None, _MLModelProxy,  specification,  None, None,  specification,  e