code: def test_maze_layout_spread(self):
      layouts = set()
      for i in six.moves.range(MAZE_LAYOUT_TRIALS):
          print(
              "phase 1: trial {} out of {}".format(
                  i + 1, MAZE_LAYOUT_TRIALS
              )
          )
          env = deepmind_lab.Lab(
              "tests/maze_generation_test",
              [MAZE_LAYOUT_OBSERVATION],
              config={},
          )
          env.reset(seed=i + 1)
          layouts.add(env.observations()[MAZE_LAYOUT_OBSERVATION])
      num_layouts = len(layouts)
      self.assertEqual(num_layouts, MAZE_LAYOUT_TRIALS)
      for i in six.moves.range(MAZE_LAYOUT_TRIALS):
          print(
              "phase 2: trial {} out of {}".format(
                  i + 1, MAZE_LAYOUT_TRIALS
              )
          )
          env = deepmind_lab.Lab(
              "tests/maze_generation_test",
              [MAZE_LAYOUT_OBSERVATION],
              config={
                  "mixerSeed": "0",
              },
          )
          env.reset(seed=i + 1)
          layouts.add(env.observations()[MAZE_LAYOUT_OBSERVATION])
      self.assertLen(layouts, num_layouts)
      for i in six.moves.range(MAZE_LAYOUT_TRIALS):
          print(
              "phase 3: trial {} out of {}".format(
                  i + 1, MAZE_LAYOUT_TRIALS
              )
          )
          env = deepmind_lab.Lab(
              "tests/maze_generation_test",
              [MAZE_LAYOUT_OBSERVATION],
              config={
                  "mixerSeed": "1",
              },
          )
          env.reset(seed=i + 1)
          layouts.add(env.observations()[MAZE_LAYOUT_OBSERVATION])
      self.assertLen(layouts - num_layouts, MAZE_LAYOUT_TRIALS)
  
file_path: lab/python/tests/maze_generation_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 numpy
  import six
  import deepmind_lab
label_desc: Use image node_id 1 for calling the MazeGenerationTest obj's underlying member method code with example usage: obj.test_maze_layout_spread() without return types