code: def get_placement_group(placement_group_name: str) -> PlacementGroup:
      """Get a placement group object with a global name.
  
      Returns:
          None if can't find a placement group with the given name.
          The placement group object otherwise.
      """
      if not placement_group_name:
          raise ValueError(
              "Please supply a non-empty value to get_placement_group"
          )
      worker = ray._private.worker.global_worker
      worker.check_connected()
      placement_group_info = (
          ray._private.state.state.get_placement_group_by_name(
              placement_group_name, worker.namespace
          )
      )
      if placement_group_info is None:
          raise ValueError(
              f"Failed to look up placement group with name: {placement_group_name}"
          )
      else:
          return PlacementGroup(
              PlacementGroupID(
                  hex_to_binary(
                      placement_group_info["placement_group_id"]
                  )
              )
          )
  
imports: import warnings
  from typing import Dict, List, Optional, Union
  import ray
  from ray._private.auto_init_hook import auto_init_ray
  from ray._private.client_mode_hook import client_mode_should_convert, client_mode_wrap
  from ray._private.utils import hex_to_binary, get_ray_doc_version
  from ray._raylet import PlacementGroupID
  from ray.util.annotations import DeveloperAPI, PublicAPI
  from ray.util.scheduling_strategies import PlacementGroupSchedulingStrategy
label_desc: Use image node_id 6 for calling a global function with example usage: get_placement_group(placement_group_name) and returns: PlacementGroup