code: def test_player_position(self, num_steps=20):
      env1 = make_dmlab_environment()
      env2 = make_dmlab_environment()
  
      move_fwd = np.array([0, 0, 0, 1, 0, 0, 0], dtype=np.intc)
      for _ in six.moves.range(num_steps):
          self.assertEqual(
              env1.step(move_fwd, 1), env2.step(move_fwd, 1)
          )
          pos1 = env1.observations()["DEBUG.POS.TRANS"]
          pos2 = env2.observations()["DEBUG.POS.TRANS"]
          self.assertTrue(
              np.allclose(pos1, pos2),
              "Player positions differ!\n"
              + pprint.pformat({"pos1": pos1, "pos2": pos2}),
          )
  
file_path: lab/python/tests/determinism_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import pprint
  from absl.testing import absltest
  import numpy
  import six
  import deepmind_lab
label_desc: Use image node_id 1 for calling the DeterminismTest obj's underlying member method code with example usage: obj.test_player_position(num_steps) without return types