code: def test_memory_pressure_kill_newest_worker(ray_with_memory_monitor):
      bytes_to_alloc = get_additional_bytes_to_reach_memory_usage_pct(
          memory_usage_threshold - 0.1
      )
  
      actor_ref = Leaker.options(name="actor").remote()
      ray.get(actor_ref.allocate.remote(bytes_to_alloc))
  
      with pytest.raises(ray.exceptions.OutOfMemoryError) as _:
          ray.get(
              allocate_memory.options(max_retries=0).remote(
                  allocate_bytes=bytes_to_alloc
              )
          )
  
      actors = ray.util.list_named_actors()
      assert len(actors) == 1
      assert "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 11 for calling a global function with example usage: test_memory_pressure_kill_newest_worker(ray_with_memory_monitor) without return types