code: def _count_pg_states():
      counter = Counter()
      for _, pg_info in ray.util.placement_group_table().items():
          counter[pg_info["state"]] += 1
      return counter
  
file_path: ray/python/ray/air/tests/execution/test_resource_manager_placement_group.py
imports: import time
  from collections import Counter
  import pytest
  import ray
  from ray.air.execution.resources.placement_group import PlacementGroupResourceManager
  from ray.air.execution.resources.request import ResourceRequest
label_desc: Use image node_id 2 for calling a global function with example usage: _count_pg_states() and returns: counter