code: def test_memory_request():
      try:
          ray.init(num_cpus=1, _memory=200 * MB)
          # fits first 2
          a = Actor.remote()
          b = Actor.remote()
          ok, _ = ray.wait(
              [a.ping.remote(), b.ping.remote()],
              timeout=60.0,
              num_returns=2,
          )
          assert len(ok) == 2
          # does not fit
          c = Actor.remote()
          ok, _ = ray.wait([c.ping.remote()], timeout=5.0)
          assert len(ok) == 0
      finally:
          ray.shutdown()
  
file_path: ray/python/ray/tests/test_memory_scheduling.py
imports: import numpy
  import time
  import ray
  from ray._private.test_utils import wait_for_condition
label_desc: Use image node_id 2 for calling a global function with example usage: test_memory_request() without return types