code: def is_inexact_array_like(element: Any) -> bool:
      """Returns `True` if `element` is an inexact JAX array, an inexact NumPy array, or
      a Python `float` or `complex`.
      """
      if hasattr(element, "__jax_array__"):
          element = element.__jax_array__()
      if isinstance(element, (np.ndarray, np.generic)):
          return np.issubdtype(element.dtype, np.inexact)
      elif isinstance(element, jax.Array):
          return jnp.issubdtype(element.dtype, jnp.inexact)
      else:
          return isinstance(element, (float, complex))
  
file_path: equinox/equinox/_filters.py
imports: from collections.abc import Callable
  from typing import Any, Optional, Union
  import jax
  import jax.numpy
  import jax.tree_util
  import numpy
  from jaxtyping import PyTree
label_desc: Use image node_id 4 for calling a global function with example usage: is_inexact_array_like(element) and returns: np, jnp, isinstance