code: def _get_model(spec, compute_units=_ComputeUnit.ALL):
      """
      Utility to get the model and the data.
      """
      from . import MLModel
  
      if isinstance(spec, MLModel):
          return spec
      else:
          return MLModel(spec, compute_units=compute_units)
  
imports: from collections.abc import Iterable
  from functools import lru_cache
  import math
  import os
  import shutil
  import subprocess
  import sys
  import tempfile
  from typing import Optional, Union
  import warnings
  import numpy
  import coremltools
  from coremltools import ComputeUnit
  from coremltools.converters.mil.mil.passes.defs.preprocess import NameSanitizer
  from coremltools.proto import Model_pb2
  import coremltools.proto.MIL_pb2
  from .._deps import _HAS_SCIPY
label_desc: Use image node_id 12 for calling a global function with example usage: _get_model(spec, compute_units) and returns: spec, MLModel