code: def test_track_future_success(ray_start_4_cpus):
      """Schedule a future that return successfully.
  
      Check that the on_result callback was triggered.
      """
      event_manager = RayEventManager()
  
      seen = set()
  
      def on_result(result: Any):
          seen.add(result)
  
      event_manager.track_future(
          succeeding.remote("a"), on_result=on_result
      )
  
      event_manager.wait()
      assert "a" in seen
  
      assert not event_manager._tracked_futures
  
file_path: ray/python/ray/air/tests/execution/test_event_manager.py
imports: import time
  from typing import Any, Type
  import pytest
  import ray
  from ray.air.execution._internal import Barrier
  from ray.air.execution._internal.event_manager import RayEventManager
  from ray.exceptions import RayTaskError
label_desc: Use image node_id 5 for calling a global function with example usage: test_track_future_success(ray_start_4_cpus) without return types