code: def testTransitionMultiRewards(self):
      observation = np.array([[-1], [-1]])
      reward = [
          np.array([[2.0], [2.0]]),
          np.array([[3.0, 3.0], [4.0, 4.0]]),
      ]
      discount = np.array([1.0, 1.0])
      time_step = ts.transition(observation, reward, discount)
  
      time_step_with_outerdims = ts.transition(
          observation, reward, discount, outer_dims=[2]
      )
  
      self.assertItemsEqual([ts.StepType.MID] * 2, time_step.step_type)
      self.assertItemsEqual(
          [ts.StepType.MID] * 2, time_step_with_outerdims.step_type
      )
      self.assertItemsEqual(observation, time_step.observation)
      self.assertItemsEqual(
          observation, time_step_with_outerdims.observation
      )
      self.assertAllEqual(reward[0], time_step.reward[0])
      self.assertAllEqual(reward[1], time_step.reward[1])
      self.assertAllEqual(reward[0], time_step_with_outerdims.reward[0])
      self.assertAllEqual(reward[1], time_step_with_outerdims.reward[1])
      self.assertItemsEqual(discount, time_step.discount)
      self.assertItemsEqual(discount, time_step_with_outerdims.discount)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import sys
  import numpy
  import tensorflow
  from tf_agents.specs import array_spec
  from tf_agents.specs import tensor_spec
  from tf_agents.trajectories import time_step
  from tf_agents.utils import nest_utils
label_desc: Use image node_id 17 for calling the TimeStepTest obj's underlying member method code with example usage: obj.testTransitionMultiRewards() without return types