class_docstr: The abstract environment class that is used by all agents. This class has the exact
  same API that OpenAI Gym uses so that integrating with it is trivial. In contrast to the
  OpenAI Gym implementation, this class only defines the abstract methods without any actual
  implementation.
  
  To implement your own environment, you need to define the following methods:
  
  - `step`
  - `reset`
  - `render`
  - `close`
  
  Refer to the [Gym documentation](https://gym.openai.com/docs/#environments).
class_docstr_tok: ["The","abstract","environment","class","that","is","used","by","all","agents",".","This","class","has","the","exact","same","API","that","OpenAI","Gym","uses","so","that","integrating","with","it","is","trivial",".","In","contrast","to","the","OpenAI","Gym","implementation",",","this","class","only","defines","the","abstract","methods","without","any","actual","implementation",".","To","implement","your","own","environment",",","you","need","to","define","the","following","methods",":","-","`","step","`","-","`","reset","`","-","`","render","`","-","`","close","`","Refer","to","the","[","Gym","documentation","]","(","https",":","\/\/gym.openai.com\/docs\/","#","environments",")","."]
docstr: Renders the environment.
  The set of supported modes varies per environment. (And some
  environments do not support rendering at all.)
  
  # Arguments
      mode (str): The mode to render with.
      close (bool): Close all open renderings.
docstr_tok: ["Renders","the","environment",".","The","set","of","supported","modes","varies","per","environment",".","(","And","some","environments","do","not","support","rendering","at","all",".",")","#","Arguments","mode","(","str",")",":","The","mode","to","render","with",".","close","(","bool",")",":","Close","all","open","renderings","."]
code: def render(self, mode="human", close=False):
      """Renders the environment.
      The set of supported modes varies per environment. (And some
      environments do not support rendering at all.)
  
      # Arguments
          mode (str): The mode to render with.
          close (bool): Close all open renderings.
      """
      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 3 for calling the Env obj's underlying member method code with example usage: obj.render(mode, close) without return types