code: def test_discrete_space_spec(self):
      discrete_space = Discrete(100)
      spec = gym_spaces_utils.gym_space_spec(discrete_space)
      self.assertIsInstance(spec, tf.FixedLenFeature)
      self.assertEqual(spec.dtype, tf.int64)
      self.assertListEqual(list(spec.shape), [1])
  
file_path: tensor2tensor/tensor2tensor/envs/gym_spaces_utils_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from gym.spaces import Box
  from gym.spaces import Discrete
  import numpy
  from tensor2tensor.envs import gym_spaces_utils
  import tensorflow.compat.v1
label_desc: Use image node_id 1 for calling the GymSpacesUtilsTest obj's underlying member method code with example usage: obj.test_discrete_space_spec() without return types