code: def test_discretized_random_agent_run(self, length=100):
      env = deepmind_lab.Lab(
          "tests/empty_room_test",
          ["RGB_INTERLEAVED"],
          config={"fps": "60", "width": "80", "height": "80"},
      )
  
      env.reset()
      agent = random_agent.DiscretizedRandomAgent()
  
      reward = 0
  
      for _ in six.moves.range(length):
          if not env.is_running():
              print("Environment stopped early")
              env.reset()
          obs = env.observations()
          action = agent.step(reward, obs["RGB_INTERLEAVED"])
          reward = env.step(action, 1)
          self.assertIsInstance(reward, float)
  
file_path: lab/python/tests/random_agent_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  from absl.testing import absltest
  import six
  import deepmind_lab
  from python import random_agent
label_desc: Use image node_id 2 for calling the RandomAgentsTest obj's underlying member method code with example usage: obj.test_discretized_random_agent_run(length) without return types