code: def _get_model(spec):
      """
      Utility to get the model and the data.
      """
      from . import MLModel
  
      if isinstance(spec, MLModel):
          return spec
      else:
          return MLModel(spec)
  
imports: import math
  import numpy
  import os
  import six
  import warnings
  import sys
  from coremltools.proto import Model_pb2
  from coremltools.models._deprecation import deprecated
  from .._deps import _HAS_SKLEARN
label_desc: Use image node_id 12 for calling a global function with example usage: _get_model(spec) and returns: spec, MLModel