code: def __init__(self):
      super().__init__()
      self.counts = Counter()
  
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 1 to create a new EpisodeAndSampleCallbacks object from inherited base classes: DefaultCallbacks with example: obj = EpisodeAndSampleCallbacks()