code: def _unpack_sparse(obj):
      """Unpack the sparse matrix into a format that we can easily iterate over for insertion into a CoreML model."""
      if not sp.sparse.issparse(obj):
          raise TypeError(
              "Object {} is not a scipy sparse matrix type".format(
                  type(obj)
              )
          )
      return obj.toarray()
  
imports: from ..._deps import _HAS_SKLEARN
  from ...models import MLModel
  import coremltools
  from coremltools.proto import FeatureTypes_pb2
  import numpy
  import scipy
  import six
label_desc: Use image node_id 16 for calling a global function with example usage: _unpack_sparse(obj) and returns: obj