class_docstr: Tests for Numpy indexing translation rules.
class_docstr_tok: ["Tests","for","Numpy","indexing","translation","rules","."]
code: def testStaticIndexing(self, shape, dtype, rng_factory, indexer):
      # TODO(rohanj): Revisit passing in self.rng() to this to customize further.
      # This would need updating lax_numpy_test as well.
      rng = rng_factory()
      args_maker = lambda: [rng(shape, dtype)]
      onp_fun = lambda x: x[indexer]
      jnp_fun = lambda x: jnp.asarray(x)[indexer]
      self._CheckAgainstNumpy(
          onp_fun, jnp_fun, args_maker, check_dtypes=True
      )
      self._CompileAndCheck(
          jnp_fun,
          args_maker,
          check_dtypes=True,
          check_incomplete_shape=True,
      )
  
imports: import collections
  import enum
  from functools import partial
  import itertools
  import unittest
  from absl.testing import absltest
  from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  import trax.tf_numpy.extensions
  import trax.tf_numpy.numpy
  from trax.tf_numpy.jax_tests.config import config
  import trax.tf_numpy.jax_tests.test_util
label_desc: Use image node_id 1 for calling the IndexingTest obj's underlying member method code with example usage: obj.testStaticIndexing(shape, dtype, rng_factory, indexer) without return types