code: def test_current_screen(self):
      env = ale.ALE("breakout")
      tempdir = tempfile.mkdtemp()
      print("tempdir: {}".format(tempdir), file=sys.stderr)
      for episode in range(6):
          env.initialize()
          t = 0
          while not env.is_terminal:
              for i in range(4):
                  screen = env.state[i]
                  self.assertEqual(screen.dtype, np.uint8)
                  img = Image.fromarray(screen, mode="L")
                  filename = "{}/{}_{}_{}.bmp".format(
                      tempdir, str(episode).zfill(6), str(t).zfill(6), i
                  )
                  img.save(filename)
              legal_actions = env.legal_actions
              a = random.randrange(len(legal_actions))
              env.receive_action(a)
              t += 1
  
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 4 for calling the TestALE obj's underlying member method code with example usage: obj.test_current_screen() without return types