class_docstr: A wrapper that will produce an error if :meth:`step` is called before an initial :meth:`reset`.
  
  Example:
      >>> from gym.envs.classic_control import CartPoleEnv
      >>> env = CartPoleEnv()
      >>> env = OrderEnforcing(env)
      >>> env.step(0)
      ResetNeeded: Cannot call env.step() before calling env.reset()
      >>> env.render()
      ResetNeeded: Cannot call env.render() before calling env.reset()
      >>> env.reset()
      >>> env.render()
      >>> env.step(0)
docstr: Returns if the environment has been reset before.
code: def has_reset(self):
      """Returns if the environment has been reset before."""
      return self._has_reset
  
file_path: gym/gym/wrappers/order_enforcing.py
imports: import gym
  from gym.error import ResetNeeded
label_desc: Use image node_id 5 for calling the OrderEnforcing obj's underlying member method code with example usage: obj.has_reset() and returns: self