code: def transform_bboxes(
      function_name: str,
      image: Image.Image,
      aug_image: Image.Image,
      dst_bboxes: Optional[List[Tuple]] = None,
      bbox_format: Optional[str] = None,
      bboxes_helper_func: Optional[Callable] = None,
      **kwargs,
  ) -> None:
      if dst_bboxes is None:
          return
  
      assert bbox_format is not None and bbox_format in [
          "pascal_voc",
          "pascal_voc_norm",
          "coco",
          "yolo",
      ], "bbox_format must be specified if bboxes are passed in and must be a supported format"
  
      src_w, src_h = image.size
      aug_w, aug_h = aug_image.size
      norm_bboxes = validate_and_normalize_bboxes(
          dst_bboxes, bbox_format, src_w, src_h
      )
  
      if bboxes_helper_func is None:
          bboxes_helper_func = getattr(
              imbboxes,
              f"{function_name}_bboxes_helper",
              lambda bbox, **_: bbox,
          )
  
      func_kwargs = deepcopy(kwargs)
      func_kwargs.pop("src_bboxes", None)
      transformed_norm_bboxes = [
          bboxes_helper_func(
              bbox=bbox, src_w=src_w, src_h=src_h, **func_kwargs
          )
          for bbox in norm_bboxes
      ]
  
      transformed_norm_bboxes = check_for_gone_bboxes(
          transformed_norm_bboxes
      )
      convert_bboxes(
          transformed_norm_bboxes, dst_bboxes, bbox_format, aug_w, aug_h
      )
  
file_path: AugLy/augly/image/utils/metadata.py
imports: from copy import deepcopy
  from typing import Any, Callable, Dict, List, Optional, Tuple
  from augly.image import intensity
  from augly.image.utils import bboxes
  from PIL import Image
label_desc: Use image node_id 5 for calling a global function with example usage: transform_bboxes(function_name, image, aug_image, dst_bboxes, bbox_format, bboxes_helper_func) without return types