<s> from . env_spec import EnvSpec <EOL> import collections <EOL> class Env ( object ) : <EOL> def step ( self , action ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError <EOL> def reset ( self ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError <EOL> @ property <EOL> def action_space ( self ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError <EOL> @ property <EOL> def observation_space ( self ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError <EOL> @ property <EOL> def action_dim ( self ) : <EOL> return self . action_space . flat_dim <EOL> def render ( self ) : <EOL> pass <EOL> def log_diagnostics ( self , paths ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> @ property <EOL> def spec ( self ) : <EOL> return EnvSpec ( <EOL> observation_space = self . observation_space , <EOL> action_space = self . action_space , <EOL> ) <EOL> @ property <EOL> def horizon ( self ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError <EOL> def terminate ( self ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> _Step = collections . namedtuple ( "<STR_LIT>" , [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT:info>" ] ) <EOL> def Step ( observation , reward , done , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> return _Step ( observation , reward , done , kwargs ) </s>
