code: def __init__(self):
      self.counter = 0
  
file_path: ray/python/ray/tune/tests/execution/test_controller_callback_integration.py
imports: from typing import Dict, Optional
  import pytest
  import sys
  import ray
  from ray.air.execution import FixedResourceManager, PlacementGroupResourceManager
  from ray.tune import Callback
  from ray.tune.execution.tune_controller import TuneController
  from ray.tune.experiment import Trial
  from ray.train.tests.util import mock_storage_context
label_desc: Use image node_id 1 to create a new StatefulCallback object from inherited base classes: Callback with example: obj = StatefulCallback()