docstr: Tests, whw
docstr_tok: ["Tests",",","whw"]
code: def test_overriding_on_episode_created_throws_error_on_new_api_stack(
      self,
  ):
      """Tests, whw"""
      config = (
          PPOConfig()
          .experimental(_enable_new_api_stack=True)
          .rollouts(env_runner_cls=SingleAgentEnvRunner)
          .callbacks(OnEpisodeCreatedCallback)
      )
      self.assertRaises(ValueError, lambda: config.validate())
  
imports: from collections import Counter
  import unittest
  import ray
  from ray.rllib.algorithms.callbacks import DefaultCallbacks
  from ray.rllib.algorithms.ppo import PPOConfig
  from ray.rllib.env.single_agent_env_runner import SingleAgentEnvRunner
  from ray.rllib.utils.test_utils import framework_iterator
label_desc: Use image node_id 5 for calling the TestCallbacks obj's underlying member method code with example usage: obj.test_overriding_on_episode_created_throws_error_on_new_api_stack() without return types