class_docstr: Abstract model for a space that is used for the state and action spaces. This class has the
  exact same API that OpenAI Gym uses so that integrating with it is trivial.
  
  Please refer to [Gym Documentation](https://gym.openai.com/docs/#spaces)
class_docstr_tok: ["Abstract","model","for","a","space","that","is","used","for","the","state","and","action","spaces",".","This","class","has","the","exact","same","API","that","OpenAI","Gym","uses","so","that","integrating","with","it","is","trivial",".","Please","refer","to","[","Gym","Documentation","]","(","https",":","\/\/gym.openai.com\/docs\/","#","spaces",")"]
docstr: Uniformly randomly sample a random element of this space.
          
docstr_tok: ["Uniformly","randomly","sample","a","random","element","of","this","space","."]
code: def sample(self, seed=None):
      """Uniformly randomly sample a random element of this space."""
      raise NotImplementedError()
  
imports: import warnings
  from copy import deepcopy
  import numpy
  from keras.callbacks import History
  from rl.callbacks import CallbackList, TestLogger, TrainEpisodeLogger, TrainIntervalLogger, Visualizer, WandbLogger
label_desc: Use image node_id 1 for calling the Space obj's underlying member method code with example usage: obj.sample(seed) without return types