docstr: Tests for a batch.
docstr_tok: ["Tests","for","a","batch","."]
code: def test_pixel_control_rewards_batch(self):
      """Tests for a batch."""
      pixel_control_rewards = functools.partial(
          general_value_functions.pixel_control_rewards,
          cell_size=self.cell_size,
      )
      pixel_control_rewards = self.variant(
          jax.vmap(pixel_control_rewards, in_axes=(1,), out_axes=1)
      )
      # Test pseudo rewards.
      rs = pixel_control_rewards(self.obs)
      np.testing.assert_allclose(self.expected, rs, rtol=1e-5)
  
file_path: rlax/rlax/_src/general_value_functions_test.py
imports: import functools
  from absl.testing import absltest
  from absl.testing import parameterized
  import chex
  import jax
  import numpy
  from rlax._src import general_value_functions
label_desc: Use image node_id 3 for calling the PixelControlTest obj's underlying member method code with example usage: obj.test_pixel_control_rewards_batch() without return types