code: def test_list_named_actors_basic_local_mode(ray_start_regular):
      @ray.remote
      class A:
          pass
  
      a = A.remote()
      assert not ray.util.list_named_actors()
  
      a = A.options(name="hi").remote()  # noqa: F841
      assert len(ray.util.list_named_actors()) == 1
      assert "hi" in ray.util.list_named_actors()
  
      b = A.options(name="hi2").remote()  # noqa: F841
      assert len(ray.util.list_named_actors()) == 2
      assert "hi" in ray.util.list_named_actors()
      assert "hi2" in ray.util.list_named_actors()
  
imports: import pytest
  import sys
  import ray
  from ray._private.test_utils import wait_for_condition
label_desc: Use image node_id 2 for calling a global function with example usage: test_list_named_actors_basic_local_mode(ray_start_regular) without return types