class_docstr: Serializer for gym.spaces.MultiDiscrete.
  
  Assumes that the number of categories in each dimension fits in the number of
  symbols.
class_docstr_tok: ["Serializer","for","gym.spaces.MultiDiscrete",".","Assumes","that","the","number","of","categories","in","each","dimension","fits","in","the","number","of","symbols","."]
code: def __init__(self, space, vocab_size):
      super().__init__(space, vocab_size)
      assert np.max(space.nvec) <= vocab_size, (
          "MultiDiscrete maximum number of categories 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 MultiDiscreteSpaceSerializer object from inherited base classes: SpaceSerializer with example: obj = MultiDiscreteSpaceSerializer(space, vocab_size)