code: def test_acquire_return_resources(ray_start_4_cpus):
      manager = FixedResourceManager(total_resources={"CPU": 4})
  
      assert not manager.has_resources_ready(REQUEST_2_CPU)
      assert not manager.has_resources_ready(REQUEST_4_CPU)
  
      manager.request_resources(REQUEST_2_CPU)
      manager.request_resources(REQUEST_4_CPU)
  
      assert manager.has_resources_ready(REQUEST_4_CPU)
  
      ready_2 = manager.acquire_resources(REQUEST_2_CPU)
  
      assert manager.has_resources_ready(REQUEST_2_CPU)
      assert not manager.has_resources_ready(REQUEST_4_CPU)
  
      manager.free_resources(ready_2)
  
      assert manager.has_resources_ready(REQUEST_4_CPU)
  
file_path: ray/python/ray/air/tests/execution/test_resource_manager_fixed.py
imports: import pytest
  import ray
  from ray.air.execution.resources.fixed import FixedResourceManager
  from ray.air.execution.resources.request import ResourceRequest
  from ray.util.scheduling_strategies import PlacementGroupSchedulingStrategy
label_desc: Use image node_id 2 for calling a global function with example usage: test_acquire_return_resources(ray_start_4_cpus) without return types