code: def test_one_actor_max_fifo_kill_previous_actor(shutdown_only):
      with ray.init(
          _system_config={
              "worker_killing_policy": "retriable_fifo",
              "memory_usage_threshold": 0.7,
              "memory_monitor_refresh_ms": memory_monitor_refresh_ms,
          },
      ):
          bytes_to_alloc = (
              get_additional_bytes_to_reach_memory_usage_pct(0.5)
          )
  
          first_actor = Leaker.options(name="first_actor").remote()
          ray.get(first_actor.allocate.remote(bytes_to_alloc))
  
          actors = ray.util.list_named_actors()
          assert len(actors) == 1
          assert "first_actor" in actors
  
          second_actor = Leaker.options(name="second_actor").remote()
          ray.get(
              second_actor.allocate.remote(
                  bytes_to_alloc, memory_monitor_refresh_ms * 3
              )
          )
  
          actors = ray.util.list_named_actors()
          assert len(actors) == 1, actors
          assert "first_actor" not in actors
          assert "second_actor" in actors
  
          third_actor = Leaker.options(name="third_actor").remote()
          ray.get(
              third_actor.allocate.remote(
                  bytes_to_alloc, memory_monitor_refresh_ms * 3
              )
          )
  
          actors = ray.util.list_named_actors()
          assert len(actors) == 1
          assert "first_actor" not in actors
          assert "second_actor" not in actors
          assert "third_actor" in actors
  
imports: from math import ceil
  import sys
  import time
  import pytest
  import ray
  from ray._private import ray_constants
  import ray._private.gcs_utils
  from ray._private.test_utils import wait_for_condition, raw_metrics
  import numpy
  from ray._private.utils import get_system_memory
  from ray._private.utils import get_used_memory
  from ray._private.state_api_test_utils import verify_failed_task
  from ray.util.state.state_manager import StateDataSourceClient
label_desc: Use image node_id 18 for calling a global function with example usage: test_one_actor_max_fifo_kill_previous_actor(shutdown_only) without return types