docstr: Ensure that wrapper does not change total reward.
docstr_tok: ["Ensure","that","wrapper","does","not","change","total","reward","."]
code: def test_same_episode_composite_reward(self, accumulation_period):
      """Ensure that wrapper does not change total reward."""
      base_env = _DiscreteEnvironmentOneReward(
          action_dtype=np.int64,
          reward_spec=specs.Array(dtype=np.float32, shape=()),
      )
      wrapped_env = wrappers.DelayedRewardWrapper(
          base_env, accumulation_period=accumulation_period
      )
      base_episode_reward = _episode_reward(base_env)
      wrapped_episode_reward = _episode_reward(wrapped_env)
      self.assertTrue(
          (
              sum(base_episode_reward) == sum(wrapped_episode_reward)
          ).all()
      )
  
file_path: acme/acme/wrappers/delayed_reward_test.py
imports: from typing import Any
  from acme import wrappers
  from acme.testing import fakes
  from dm_env import specs
  import numpy
  import tree
  from absl.testing import absltest
  from absl.testing import parameterized
label_desc: Use image node_id 3 for calling the DelayedRewardTest obj's underlying member method code with example usage: obj.test_same_episode_composite_reward(accumulation_period) without return types