code: def step(self, action):
      if action == 0 and self.cur_pos > 0:  # move right (towards goal)
          self.cur_pos -= 1
      elif action == 1:  # move left (towards start)
          self.cur_pos += 1
      if self.cur_pos >= self.end_pos:
          return 0, 1.0, True, True, {}
      else:
          return self.cur_pos, -0.1, False, False, {}
  
file_path: ray/rllib/examples/documentation/custom_gym_env.py
imports: import gymnasium
  import ray
  from ray.rllib.algorithms.ppo import PPOConfig
label_desc: Use image node_id 3 for calling the SimpleCorridor obj's underlying member method code with example usage: obj.step(action) and returns: int,  int,  True,  True,  dict, self,  unknown,  False,  False,  dict