class_docstr: A wrapper which can transform an environment from the old API to the new API.
  
  Old step API refers to step() method returning (observation, reward, done, info), and reset() only retuning the observation.
  New step API refers to step() method returning (observation, reward, terminated, truncated, info) and reset() returning (observation, info).
  (Refer to docs for details on the API change)
  
  Known limitations:
  - Environments that use `self.np_random` might not work as expected.
class_docstr_tok: ["A","wrapper","which","can","transform","an","environment","from","the","old","API","to","the","new","API",".","Old","step","API","refers","to","step","(",")","method","returning","(","observation",",","reward",",","done",",","info",")",",","and","reset","(",")","only","retuning","the","observation",".","New","step","API","refers","to","step","(",")","method","returning","(","observation",",","reward",",","terminated",",","truncated",",","info",")","and","reset","(",")","returning","(","observation",",","info",")",".","(","Refer","to","docs","for","details","on","the","API","change",")","Known","limitations",":","-","Environments","that","use","`","self.np_random","`","might","not","work","as","expected","."]
docstr: Steps through the environment.
  
  Args:
      action: action to step through the environment with
  
  Returns:
      (observation, reward, terminated, truncated, info)
docstr_tok: ["Steps","through","the","environment",".","Args",":","action",":","action","to","step","through","the","environment","with","Returns",":","(","observation",",","reward",",","terminated",",","truncated",",","info",")"]
code: def step(self, action: Any) -> Tuple[Any, float, bool, bool, Dict]:
      """Steps through the environment.
  
      Args:
          action: action to step through the environment with
  
      Returns:
          (observation, reward, terminated, truncated, info)
      """
      obs, reward, done, info = self.env.step(action)
  
      if self.render_mode == "human":
          self.render()
  
      return convert_to_terminated_truncated_step_api(
          (obs, reward, done, info)
      )
  
imports: import sys
  from typing import Any, Dict, Optional, Tuple
  import gym
  from gym.core import ObsType
  from gym.utils.step_api_compatibility import convert_to_terminated_truncated_step_api
label_desc: Use image node_id 3 for calling the EnvCompatibility obj's underlying member method code with example usage: obj.step(action) and returns: convert_to_terminated_truncated_step_api