code: def _is_numpy_instance(a):
      """
      Checks if an object is an instance of a type from the numpy module.
      """
      # This check avoids unnecessarily importing NumPy.  We check the whole
      # __mro__ in case any base type is a numpy type.
      return any(
          type_.__module__ == "numpy" for type_ in type(a).__mro__
      )
  
file_path: sympy/sympy/core/sympify.py
imports: from __future__ import annotations
  from typing import Any, Callable
  from inspect import getmro
  import string
  from sympy.core.random import choice
  from .parameters import global_parameters
  from sympy.utilities.iterables import iterable
  from .basic import Basic
label_desc: Use image node_id 1 for calling a global function with example usage: _is_numpy_instance(a) and returns: any