code: def _check_data(inputs, in_type, msg):
      is_NDArray_or_list = True
      if isinstance(inputs, list):
          for i in inputs:
              if not isinstance(i, in_type):
                  is_NDArray_or_list = False
                  break
      else:
          is_NDArray_or_list = isinstance(inputs, in_type)
      assert is_NDArray_or_list, msg
  
imports: import math
  import ctypes
  import copy
  from .random import uniform
  from .symbol import Symbol
  from .None import symbol
  from ..base import _LIB, check_call
  from ..base import SymbolHandle, _as_list
  from ..attribute import AttrScope, current
label_desc: Use image node_id 9 for calling a global function with example usage: _check_data(inputs, in_type, msg) without return types