code: def _has_instance(data, dtype):
      """Return True if ``data`` has instance of ``dtype``.
      This function is called after _init_data.
      ``data`` is a list of (str, NDArray)"""
      for item in data:
          _, arr = item
          if isinstance(arr, dtype):
              return True
      return False
  
file_path: mxnet/python/mxnet/io/utils.py
imports: from collections import OrderedDict
  import numpy
  from ..ndarray.sparse import CSRNDArray
  from ..ndarray.sparse import array
  from ..ndarray import NDArray
  from ..ndarray import array
label_desc: Use image node_id 2 for calling a global function with example usage: _has_instance(data, dtype) and returns: False, True