code: def ray_with_memory_monitor(shutdown_only):
      with ray.init(
          num_cpus=1,
          object_store_memory=100 * 1024 * 1024,
          _system_config={
              "memory_usage_threshold": memory_usage_threshold,
              "memory_monitor_refresh_ms": memory_monitor_refresh_ms,
              "metrics_report_interval_ms": 100,
              "task_failure_entry_ttl_ms": 2 * 60 * 1000,
              "task_oom_retries": 0,
              "min_memory_free_bytes": -1,
          },
      ) as addr:
          yield addr
  
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 1 for calling a global function with example usage: ray_with_memory_monitor(shutdown_only) without return types