code: def foo(self, val, error: bool = False):
      if error:
          raise RuntimeError
      return val
  
file_path: ray/python/ray/air/tests/execution/test_tracked_actor_task.py
imports: from collections import Counter
  import pytest
  import ray
  from ray.air import ResourceRequest
  from ray.air.execution import FixedResourceManager, PlacementGroupResourceManager
  from ray.air.execution._internal.actor_manager import RayActorManager
label_desc: Use image node_id 1 for calling the Actor obj's underlying member method code with example usage: obj.foo(val, error) and returns: val