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: Renders the environment with `kwargs`.
code: def render(self, *args, **kwargs):
      """Renders the environment with `kwargs`."""
      if (
          not self._disable_render_order_enforcing
          and not self._has_reset
      ):
          raise ResetNeeded(
              "Cannot call `env.render()` before calling `env.reset()`, if this is a intended action, "
              "set `disable_render_order_enforcing=True` on the OrderEnforcer wrapper."
          )
      return self.env.render(*args, **kwargs)
  
file_path: gym/gym/wrappers/order_enforcing.py
imports: import gym
  from gym.error import ResetNeeded
label_desc: Use image node_id 4 for calling the OrderEnforcing obj's underlying member method code with example usage: obj.render() and returns: self