code: def _annotate_remote_entity(
      self,
      entity: RemoteRayEntity,
      bundle: Dict[str, float],
      bundle_index: int,
  ) -> RemoteRayEntity:
      bundle = bundle.copy()
      num_cpus = bundle.pop("CPU", 0)
      num_gpus = bundle.pop("GPU", 0)
      memory = bundle.pop("memory", 0.0)
  
      return entity.options(
          scheduling_strategy=PlacementGroupSchedulingStrategy(
              placement_group=self.placement_group,
              placement_group_bundle_index=bundle_index,
              placement_group_capture_child_tasks=True,
          ),
          num_cpus=num_cpus,
          num_gpus=num_gpus,
          memory=memory,
          resources=bundle,
      )
  
imports: import time
  from collections import defaultdict
  from typing import Dict, List, Optional, Set
  from dataclasses import dataclass
  import ray
  from ray.air.execution.resources.request import ResourceRequest, AcquiredResources, RemoteRayEntity
  from ray.air.execution.resources.resource_manager import ResourceManager
  from ray.util.annotations import DeveloperAPI
  from ray.util.placement_group import PlacementGroup, remove_placement_group
  from ray.util.scheduling_strategies import PlacementGroupSchedulingStrategy
label_desc: Use image node_id 1 for calling the PlacementGroupAcquiredResources obj's underlying member method code with example usage: obj._annotate_remote_entity(entity, bundle, bundle_index) and returns: entity