docstr: Tests a gymnasium Env that uses the old API, but is auto-wrapped by RLlib.
docstr_tok: ["Tests","a","gymnasium","Env","that","uses","the","old","API",",","but","is","auto-wrapped","by","RLlib","."]
code: def test_gymnasium_old_api_using_auto_wrap(self):
      """Tests a gymnasium Env that uses the old API, but is auto-wrapped by RLlib."""
      algo = (
          PPOConfig()
          .environment(env=GymnasiumOldAPI, auto_wrap_old_gym_envs=True)
          # Speeds the test up.
          .rollouts(num_rollout_workers=0)
          .build()
      )
      algo.train()
      algo.stop()
  
imports: import unittest
  import ray
  from ray.rllib.algorithms.ppo import PPOConfig
  from ray.rllib.env.multi_agent_env import MultiAgentEnv
  from ray.rllib.env.wrappers.multi_agent_env_compatibility import MultiAgentEnvCompatibility
  from ray.rllib.utils.gym import try_import_gymnasium_and_gym
  from ray.tune.registry import register_env
label_desc: Use image node_id 4 for calling the TestGymEnvAPIs obj's underlying member method code with example usage: obj.test_gymnasium_old_api_using_auto_wrap() without return types