code: def placement_group_info_to_addresses(pg_name, bundles):
      addresses = {}
      for bundle_index, bundle_resources in enumerate(bundles):
          address = node_placement_to_address(pg_name, bundle_index)
          addresses[address] = bundle_resources
      return addresses
  
file_path: mars/mars/oscar/backends/ray/utils.py
imports: import asyncio
  import enum
  import logging
  import os
  import posixpath
  from urllib.parse import urlparse, unquote
  from ....utils import lazy_import, lazy_import_on_load
label_desc: Use image node_id 8 for calling a global function with example usage: placement_group_info_to_addresses(pg_name, bundles) and returns: addresses