code: def __init__(self, config):
      self.end_pos = config["corridor_length"]
      self.cur_pos = 0
      self.action_space = gym.spaces.Discrete(2)  # right/left
      self.observation_space = gym.spaces.Discrete(self.end_pos)
  
file_path: ray/python/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 1 to create a new SimpleCorridor object from inherited base classes: gym with example: obj = SimpleCorridor(config)