code: def test_actor_namespace_access(ray_start_regular):
      @ray.remote
      class A:
          def hi(self):
              return "hi"
  
      A.options(
          name="actor_in_current_namespace", lifetime="detached"
      ).remote()
      A.options(
          name="actor_name", namespace="namespace", lifetime="detached"
      ).remote()
      ray.get_actor("actor_in_current_namespace")  # => works
      ray.get_actor("actor_name", namespace="namespace")  # => works
      match_str = r"Failed to look up actor with name.*"
      with pytest.raises(ValueError, match=match_str):
          ray.get_actor("actor_name")
  
imports: import os
  import sys
  import time
  import numpy
  import pytest
  import ray
  import ray._private.gcs_utils
  from ray.util.state import list_actors
  import ray.cluster_utils
  from ray._private.test_utils import SignalActor, convert_actor_state, kill_actor_and_wait_for_failure, make_global_state_accessor, run_string_as_driver, wait_for_condition, wait_for_pid_to_exit
  from ray._private.ray_constants import gcs_actor_scheduling_enabled
  from ray.experimental.internal_kv import _internal_kv_get, _internal_kv_put
label_desc: Use image node_id 32 for calling a global function with example usage: test_actor_namespace_access(ray_start_regular) and returns: str