class_docstr: Tests for LAX-backed Numpy reduction operations.
class_docstr_tok: ["Tests","for","LAX-backed","Numpy","reduction","operations","."]
code: def testReducerBadInitial(self, rec):
      jnp_op = getattr(jnp, rec.name)
      arr = jnp.ones((2, 3, 4))
      initial = jnp.zeros((1, 2, 3))
      msg = r"initial value must be a scalar. Got array of shape \(1, 2, 3\)"
      with self.assertRaisesRegex(ValueError, msg):
          jnp_op(arr, axis=-1, initial=initial)
  
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 4 for calling the JaxNumpyReducerTests obj's underlying member method code with example usage: obj.testReducerBadInitial(rec) without return types