def make(self):
        """Instantiates an instance of the environment with appropriate kwargs"""
        if self._entry_point is None:
            raise error.Error('Attempting to make deprecated env {}. (HINT: is there a newer registered version of this env?)'.format(self.id))

        cls = load(self._entry_point)
        env = cls(**self._kwargs)

        # Make the enviroment aware of which spec it came from.
        env.spec = self
        env = env.build(extra_wrappers=self._wrappers)

        return env
def make ( self ) : if self . _entry_point is None : raise error . Error ( 'Attempting to make deprecated env {}. (HINT: is there a newer registered version of this env?)' . format ( self . id ) ) cls = load ( self . _entry_point ) env = cls ( ** self . _kwargs ) env . spec = self env = env . build ( extra_wrappers = self . _wrappers ) return env
Instantiates an instance of the environment with appropriate kwargs