code: def test_spec_from_gym_space_when_simplify_box_bounds_false(self):
      # testing on gym.spaces.Dict which makes recursive calls to
      # _spec_from_gym_space
      box_space = gym.spaces.Box(-1.0, 1.0, (2,))
      dict_space = gym.spaces.Dict(
          {"box1": box_space, "box2": box_space}
      )
      spec = gym_wrapper.spec_from_gym_space(
          dict_space, simplify_box_bounds=False
      )
  
      self.assertEqual((2,), spec["box1"].shape)
      self.assertEqual((2,), spec["box2"].shape)
      self.assertEqual(np.float32, spec["box1"].dtype)
      self.assertEqual(np.float32, spec["box2"].dtype)
      self.assertEqual("box1", spec["box1"].name)
      self.assertEqual("box2", spec["box2"].name)
      np.testing.assert_array_equal(
          np.array([-1, -1], dtype=int), spec["box1"].minimum
      )
      np.testing.assert_array_equal(
          np.array([1, 1], dtype=int), spec["box1"].maximum
      )
      np.testing.assert_array_equal(
          np.array([-1, -1], dtype=int), spec["box2"].minimum
      )
      np.testing.assert_array_equal(
          np.array([1, 1], dtype=int), spec["box2"].maximum
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import math
  from absl.testing.absltest import mock
  import gymnasium
  import numpy
  from tf_agents.environments import gymnasium_wrapper
  from tf_agents.utils import test_utils
label_desc: Use image node_id 7 for calling the GymnasiumWrapperSpecTest obj's underlying member method code with example usage: obj.test_spec_from_gym_space_when_simplify_box_bounds_false() without return types