code: def test_spec_from_gym_space_discrete(self):
      discrete_space = gym.spaces.Discrete(3)
      spec = gym_wrapper.spec_from_gym_space(discrete_space)
  
      self.assertEqual((), spec.shape)
      self.assertEqual(np.int64, spec.dtype)
      self.assertEqual(0, spec.minimum)
      self.assertEqual(2, spec.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 1 for calling the GymnasiumWrapperSpecTest obj's underlying member method code with example usage: obj.test_spec_from_gym_space_discrete() without return types