def testBatchSize(self):
    batch_size = 3
    obs_spec = array_spec.BoundedArraySpec((2, 3), np.int32, (- 10), 10)
    env = random_py_environment.RandomPyEnvironment(obs_spec, batch_size=batch_size)
    time_step = env.step([0])
    self.assertEqual(time_step.observation.shape, (3, 2, 3))
    self.assertEqual(time_step.reward.shape[0], batch_size)
    self.assertEqual(time_step.discount.shape[0], batch_size)
def testBatchSize(self):
    batch_size = 3
    obs_spec = array_spec.BoundedArraySpec((2, 3), np.int32, (- 10), 10)
    env = random_py_environment.RandomPyEnvironment(obs_spec, batch_size=batch_size)
    time_step = env.step([0])
    self.assertEqual(time_step.observation.shape, (3, 2, 3))
    self.assertEqual(time_step.reward.shape[0], batch_size)
    self.assertEqual(time_step.discount.shape[0], batch_size)