code: def extract_packed_annotations_from_matches(
      proposals_with_targets: List[Instances],
      accumulator: AnnotationsAccumulator,
  ) -> Any:
      for proposals_targets_per_image in proposals_with_targets:
          accumulator.accumulate(proposals_targets_per_image)
      return accumulator.pack()
  
imports: from abc import ABC, abstractmethod
  from dataclasses import dataclass
  from typing import Any, Dict, List, Optional, Tuple
  import torch
  from torch.nn import functional
  from detectron2.structures import BoxMode, Instances
  from densepose import DensePoseDataRelative
label_desc: Use image node_id 3 for calling a global function with example usage: extract_packed_annotations_from_matches(proposals_with_targets, accumulator) and returns: accumulator