code: def test_is_inexact_array(getkey):
      objs = [
          1,
          2.0,
          [2.0],
          True,
          object(),
          jnp.array([1]),
          jnp.array(1.0),
          np.array(1.0),
          np.array(1),
          eqx.nn.Linear(1, 1, key=getkey()),
      ]
      results = [
          False,
          False,
          False,
          False,
          False,
          False,
          True,
          True,
          False,
          False,
      ]
      for o, r in zip(objs, results):
          assert eqx.is_inexact_array(o) == r
  
file_path: equinox/tests/test_filters.py
imports: from typing import Any
  import equinox
  import jax.numpy
  import jax.tree_util
  import numpy
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: test_is_inexact_array(getkey) without return types