class_docstr: Serializer for gym.spaces.Discrete.
  
  Assumes that the size of the space fits in the number of symbols.
class_docstr_tok: ["Serializer","for","gym.spaces.Discrete",".","Assumes","that","the","size","of","the","space","fits","in","the","number","of","symbols","."]
code: def __init__(self, space, vocab_size):
      super().__init__(space, vocab_size)
      assert (
          space.n <= vocab_size
      ), "Discrete space size should fit in the number of symbols."
  
imports: import copy
  from absl import logging
  import gin
  import gym
  from jax import numpy
label_desc: Use image node_id 1 to create a new DiscreteSpaceSerializer object from inherited base classes: SpaceSerializer with example: obj = DiscreteSpaceSerializer(space, vocab_size)