code: def _is_numpy_array(obj):
      """
      Return true if the given object is a numpy array.  Make a special effort to
      avoid importing numpy unless it's really necessary.
      """
      import sys
  
      np = sys.modules.get("numpy")
      if np is not None:
          return isinstance(obj, np.ndarray)
      return False
  
imports: from __future__ import absolute_import
  import math
  import pprint
  import sys
  import warnings
  from decimal import Decimal
  from numbers import Number
  from more_itertools.more import always_iterable
  from six.moves import filterfalse
  from six.moves import zip
  import _pytest._code
  from _pytest import deprecated
  from _pytest.compat import isclass
  from _pytest.compat import Iterable
  from _pytest.compat import Mapping
  from _pytest.compat import Sized
  from _pytest.compat import STRING_TYPES
  from _pytest.outcomes import fail
label_desc: Use image node_id 5 for calling a global function with example usage: _is_numpy_array(obj) and returns: False, isinstance