code: def test_map_frame_count(self, length=100):
      env = deepmind_lab.Lab(
          "tests/empty_room_test",
          ["MAP_FRAME_NUMBER"],
          config={"fps": "60", "width": "80", "height": "80"},
      )
  
      env.reset()
      agent = random_agent.DiscretizedRandomAgent()
  
      reward = 0
      for frame in six.moves.range(length):
          if not env.is_running():
              print("Environment stopped early")
              env.reset()
          obs = env.observations()
          action = agent.step(reward, None)
          env.step(action, 1)
          frame_number = int(obs["MAP_FRAME_NUMBER"])
          self.assertEquals(frame, frame_number)
  
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 3 for calling the RandomAgentsTest obj's underlying member method code with example usage: obj.test_map_frame_count(length) without return types