code: def test_async_actor_task_id(shutdown_only):
      ray.init()
  
      @ray.remote
      class A:
          async def f(self):
              task_id = ray.get_runtime_context().get_task_id()
              return task_id
  
      a = A.remote()
      task_id = ray.get(a.f.remote())
  
      def verify():
          tasks = list_tasks(filters=[("name", "=", "A.f")])
          assert len(tasks) == 1
          assert tasks[0].task_id == task_id
          return True
  
      wait_for_condition(verify)
  
imports: import ray
  import os
  import signal
  import time
  import sys
  import pytest
  import warnings
  from ray._private.test_utils import SignalActor
  from ray.util.scheduling_strategies import PlacementGroupSchedulingStrategy
  from ray.util.state import list_tasks
  from ray._private.test_utils import wait_for_condition
label_desc: Use image node_id 12 for calling a global function with example usage: test_async_actor_task_id(shutdown_only) and returns: True, task_id