class_docstr: Tests for LAX-backed Numpy reduction operations.
class_docstr_tok: ["Tests","for","LAX-backed","Numpy","reduction","operations","."]
code: def _GetArgsMaker(self, rng, shapes, dtypes, np_arrays=True):
      def f():
          out = [
              rng(shape, dtype or jnp.float_)
              for shape, dtype in zip(shapes, dtypes)
          ]
          if np_arrays:
              return out
          return [
              jnp.asarray(a)
              if isinstance(a, (np.ndarray, np.generic))
              else a
              for a in out
          ]
  
      return f
  
imports: import collections
  from functools import partial
  import itertools
  import unittest
  from absl.testing import absltest
  from absl.testing import parameterized
  import numpy
  import jax
  from jax import numpy
  from jax._src import config
  from jax._src import dtypes
  from jax._src import test_util
  from jax._src.util import NumpyComplexWarning
label_desc: Use image node_id 1 for calling the JaxNumpyReducerTests obj's underlying member method code with example usage: obj._GetArgsMaker(rng, shapes, dtypes, np_arrays) and returns: f, unknown, out