code: def is_np_ndarray(value):
      return hasattr(value, "__array__") and not (
          # For legacy reasons we do not automatically promote Numpy strings.
          isinstance(value, np.str_)
          # NumPy dtypes have __array__ as unbound methods.
          or isinstance(value, type)
      )
  
imports: from typing import Any, List, Tuple
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: is_np_ndarray(value) and returns: unknown