code: def test_global_state_actor_entry(ray_start_regular):
      @ray.remote
      class Actor:
          def ready(self):
              pass
  
      # actor table should be empty at first
      assert len(ray._private.state.actors()) == 0
  
      a = Actor.remote()
      b = Actor.remote()
      ray.get(a.ready.remote())
      ray.get(b.ready.remote())
      assert len(ray._private.state.actors()) == 2
      a_actor_id = a._actor_id.hex()
      b_actor_id = b._actor_id.hex()
      assert (
          ray._private.state.actors(actor_id=a_actor_id)["ActorID"]
          == a_actor_id
      )
      assert ray._private.state.actors(actor_id=a_actor_id)[
          "State"
      ] == convert_actor_state(gcs_utils.ActorTableData.ALIVE)
      assert (
          ray._private.state.actors(actor_id=b_actor_id)["ActorID"]
          == b_actor_id
      )
      assert ray._private.state.actors(actor_id=b_actor_id)[
          "State"
      ] == convert_actor_state(gcs_utils.ActorTableData.ALIVE)
  
imports: import os
  import time
  import pytest
  import ray
  import ray._private.gcs_utils
  import ray._private.ray_constants
  from ray._raylet import GcsClient
  from ray.core.generated import autoscaler_pb2
  from ray._private.test_utils import convert_actor_state, make_global_state_accessor, wait_for_condition
label_desc: Use image node_id 6 for calling a global function with example usage: test_global_state_actor_entry(ray_start_regular) without return types