code: def assert_correct_pg(pg_response_data, pg_demands, strategy):
      assert len(pg_response_data) == 1
      pg_response_data = pg_response_data[0]
      strategy_mapping_dict_protobuf = {
          "PACK": 0,
          "SPREAD": 1,
          "STRICT_PACK": 2,
          "STRICT_SPREAD": 3,
      }
      assert (
          pg_response_data.strategy
          == strategy_mapping_dict_protobuf[strategy]
      )
      assert pg_response_data.creator_job_id
      assert pg_response_data.creator_actor_id
      assert pg_response_data.creator_actor_dead
      assert pg_response_data.placement_group_id
  
      for i, bundle in enumerate(pg_demands):
          assert pg_response_data.bundles[i].unit_resources == bundle
          assert pg_response_data.bundles[
              i
          ].bundle_id.placement_group_id
  
file_path: ray/python/ray/tests/test_multi_node_2.py
imports: import logging
  import time
  import pytest
  import ray
  from ray._private.test_utils import SignalActor, generate_system_config_map, wait_for_condition
  from ray.autoscaler._private.monitor import Monitor
  from ray.autoscaler.sdk import request_resources
  from ray.cluster_utils import Cluster
  from ray.util.placement_group import placement_group, remove_placement_group
label_desc: Use image node_id 5 for calling a global function with example usage: assert_correct_pg(pg_response_data, pg_demands, strategy) without return types