code: def is_ndarray_of_int_or_bool(obj):
      return isinstance(obj, np.ndarray) and (
          np.issubdtype(obj.dtype, np.integer)
          or np.issubdtype(obj.dtype, np.bool_)
      )
  
imports: import numbers
  from functools import reduce
  from operator import mul
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: is_ndarray_of_int_or_bool(obj) and returns: unknown