class_docstr: Tests for Numpy indexing translation rules.
class_docstr_tok: ["Tests","for","Numpy","indexing","translation","rules","."]
code: def testDynamicSliceAgainstNumpy(
      self, shape, dtype, start_indices, size_indices, rng_factory
  ):
      rng = rng_factory()
      args_maker = lambda: [rng(shape, dtype), onp.array(start_indices)]
      op = lambda x, s: npe.dynamic_slice(x, s, size_indices)
      numpy_op = lambda x, s: dynamic_slice_reference(
          x, s, size_indices
      )
      self._CheckAgainstNumpy(numpy_op, op, args_maker)
  
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 21 for calling the IndexingTest obj's underlying member method code with example usage: obj.testDynamicSliceAgainstNumpy(shape, dtype, start_indices, size_indices, rng_factory) without return types