code: def test_strategy_nested(ray_start_4_cpus, strategy):
      """The fixed resoure manager does not support STRICT_SPREAD within a PG."""
  
      @ray.remote
      def nested_test():
          manager = FixedResourceManager()
  
          req = ResourceRequest([{"CPU": 2}], strategy=strategy)
  
          if strategy == "STRICT_SPREAD":
              with pytest.raises(RuntimeError):
                  manager.request_resources(req)
          else:
              manager.request_resources(req)
  
      pg = ray.util.placement_group([{"CPU": 2}])
      ray.wait([pg.ready()])
  
      try:
          ray.get(
              nested_test.options(
                  scheduling_strategy=PlacementGroupSchedulingStrategy(
                      placement_group=pg,
                      placement_group_capture_child_tasks=True,
                  )
              ).remote()
          )
      finally:
          ray.util.remove_placement_group(pg)
  
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 7 for calling a global function with example usage: test_strategy_nested(ray_start_4_cpus, strategy) without return types