docstr: Tests that we can properly detect Atari envs.
docstr_tok: ["Tests","that","we","can","properly","detect","Atari","envs","."]
code: def test_detect_atari_env(self):
      """Tests that we can properly detect Atari envs."""
      config = AlgorithmConfig().environment(
          env="ALE/Breakout-v5", env_config={"frameskip": 1}
      )
      self.assertTrue(config.is_atari)
  
      config = AlgorithmConfig().environment(env="ALE/Pong-v5")
      self.assertTrue(config.is_atari)
  
      config = AlgorithmConfig().environment(env="CartPole-v1")
      # We do not auto-detect callable env makers for Atari envs.
      self.assertFalse(config.is_atari)
  
      config = AlgorithmConfig().environment(
          env=lambda ctx: gym.make(
              "ALE/Breakout-v5",
              frameskip=1,
          )
      )
      # We do not auto-detect callable env makers for Atari envs.
      self.assertFalse(config.is_atari)
  
      config = AlgorithmConfig().environment(env="NotAtari")
      self.assertFalse(config.is_atari)
  
imports: import gymnasium
  from typing import Type
  import unittest
  import ray
  from ray.rllib.algorithms.algorithm_config import AlgorithmConfig
  from ray.rllib.algorithms.callbacks import make_multi_callbacks
  from ray.rllib.algorithms.ppo import PPO, PPOConfig
  from ray.rllib.algorithms.ppo.tf.ppo_tf_learner import PPOTfLearner
  from ray.rllib.algorithms.ppo.torch.ppo_torch_rl_module import PPOTorchRLModule
  from ray.rllib.core.rl_module.rl_module import SingleAgentRLModuleSpec, RLModule
  from ray.rllib.core.rl_module.marl_module import MultiAgentRLModuleSpec, MultiAgentRLModule
  from ray.rllib.utils.test_utils import check
label_desc: Use image node_id 7 for calling the TestAlgorithmConfig obj's underlying member method code with example usage: obj.test_detect_atari_env() without return types