code: def test_actor_task_with_repr_name(ray_start_with_dashboard):
      @ray.remote
      class ReprActor:
          def __init__(self, x) -> None:
              self.x = x
  
          def __repr__(self) -> str:
              return self.x
  
          def f(self):
              pass
  
      a = ReprActor.remote(x="repr-name-a")
      ray.get(a.f.remote())
  
      def verify():
          tasks = list_tasks(
              detail=True, filters=[("type", "=", "ACTOR_TASK")]
          )
          assert len(tasks) == 1, tasks
          assert tasks[0].name == "repr-name-a.f"
          assert tasks[0].func_or_class_name == "ReprActor.f"
          return True
  
      wait_for_condition(verify)
  
      b = ReprActor.remote(x="repr-name-b")
      ray.get(b.f.options(name="custom-name").remote())
  
      def verify():
          tasks = list_tasks(
              detail=True,
              filters=[
                  ("actor_id", "=", b._actor_id.hex()),
                  ("type", "=", "ACTOR_TASK"),
              ],
          )
          assert len(tasks) == 1, tasks
          assert tasks[0].name == "custom-name"
          assert tasks[0].func_or_class_name == "ReprActor.f"
          return True
  
      wait_for_condition(verify)
  
      @ray.remote
      class Actor:
          def f(self):
              pass
  
      c = Actor.remote()
      ray.get(c.f.remote())
  
      def verify():
          tasks = list_tasks(
              detail=True,
              filters=[
                  ("actor_id", "=", c._actor_id.hex()),
                  ("type", "=", "ACTOR_TASK"),
              ],
          )
  
          assert len(tasks) == 1, tasks
          assert tasks[0].name == "Actor.f"
          assert tasks[0].func_or_class_name == "Actor.f"
          return True
  
      wait_for_condition(verify)
  
imports: import asyncio
  import json
  import os
  import sys
  from pathlib import Path
  import tempfile
  from collections import defaultdict
  from ray._private.test_utils import check_call_subprocess
  import ray
  import requests
  import pytest
  from ray._private.profiling import chrome_tracing_dump
  from ray.util.state import get_actor, list_tasks, list_actors, list_workers, list_nodes
  from ray._private.test_utils import wait_for_condition
label_desc: Use image node_id 5 for calling a global function with example usage: test_actor_task_with_repr_name(ray_start_with_dashboard) and returns: True, True, True, self