code: def test_deadlock_task_with_nested_actor_with_actor_last(
      ray_with_memory_monitor,
  ):
      leaker = Leaker.options(
          max_restarts=0, max_task_retries=0
      ).remote()
      with pytest.raises(ray.exceptions.OutOfMemoryError) as _:
          ray.get(
              task_with_nested_actor.remote(
                  first_fraction=memory_usage_threshold - 0.1,
                  second_fraction=memory_usage_threshold + 0.25,
                  leaker=leaker,
                  actor_allocation_first=False,
              )
          )
  
imports: import sys
  import threading
  import pytest
  import ray
  from ray.tests.test_memory_pressure import allocate_memory, Leaker, get_additional_bytes_to_reach_memory_usage_pct, memory_usage_threshold, memory_monitor_refresh_ms
label_desc: Use image node_id 7 for calling a global function with example usage: test_deadlock_task_with_nested_actor_with_actor_last(ray_with_memory_monitor) without return types