code: def assert_no_leaks():
      total = ray.cluster_resources()
      current = ray.available_resources()
      total.pop("memory")
      total.pop("object_store_memory")
      current.pop("memory")
      current.pop("object_store_memory")
      assert total == current, (total, current)
  
file_path: ray/release/benchmarks/single_node/test_single_node.py
imports: import numpy
  import time
  import ray
  import ray.autoscaler.sdk
  from ray._private.test_utils import Semaphore
  import json
  import os
  from time import perf_counter
  from tqdm import trange, tqdm
label_desc: Use image node_id 1 for calling a global function with example usage: assert_no_leaks() without return types