code: def test_reward(self):
      env = ale.ALE("pong")
      for _ in range(3):
          total_r = 0
          while not env.is_terminal:
              a = random.randrange(len(env.legal_actions))
              env.receive_action(a)
              total_r += env.reward
          self.assertGreater(total_r, -22)
          self.assertLess(total_r, -15)
          env.initialize()
  
file_path: chainerrl/tests/test_ale.py
imports: import random
  import sys
  import tempfile
  import unittest
  import numpy
  from PIL import Image
  from chainerrl.envs import ale
label_desc: Use image node_id 5 for calling the TestALE obj's underlying member method code with example usage: obj.test_reward() without return types