code: def test_no_verbose_output():
      script = """
  import ray
  
  @ray.remote
  class Actor:
      def ping(self):
          return "ok"
  
  
  @ray.remote
  def getter(name):
      actor = Actor.options(
          name="foo", lifetime="detached", namespace="n", get_if_exists=True).remote()
      ray.get(actor.ping.remote())
  
  
  def do_run(name):
      name = "actor_" + str(name)
      tasks = [getter.remote(name) for i in range(4)]
      ray.get(tasks)
      try:
          ray.kill(ray.get_actor(name, namespace="n"))  # Cleanup
      except:
          pass
  
  
  for i in range(100):
      do_run(i)
  
  print("DONE")
  """
  
      proc = run_string_as_driver_nonblocking(script)
      out_str = proc.stdout.read().decode(
          "ascii"
      ) + proc.stderr.read().decode("ascii")
      # Check there's no excessively verbose raylet error messages due to
      # actor creation races.
      out = []
      for line in out_str.split("\n"):
          if (
              "local Ray instance" not in line
              and "The object store" not in line
          ):
              out.append(line)
      valid = "".join(out)
      assert "DONE" in valid, out_str
  
file_path: ray/python/ray/tests/test_get_or_create_actor.py
imports: import sys
  import os
  import pytest
  import ray
  from ray._private.test_utils import run_string_as_driver_nonblocking
label_desc: Use image node_id 3 for calling a global function with example usage: test_no_verbose_output() without return types