code: def pad_square_bboxes_helper(
      bbox: Tuple, src_w: int, src_h: int, **kwargs
  ) -> Tuple:
      """
      In pad_square, pad is called with w_factor & h_factor computed as follows, so we can
      use the `pad_bboxes_helper` function to transform the bbox
      """
      w_factor, h_factor = 0, 0
  
      if src_w < src_h:
          w_factor = (src_h - src_w) / (2 * src_w)
      else:
          h_factor = (src_w - src_h) / (2 * src_h)
  
      return pad_bboxes_helper(
          bbox, w_factor=w_factor, h_factor=h_factor
      )
  
file_path: AugLy/augly/image/utils/bboxes.py
imports: import math
  from typing import Callable, List, Optional, Tuple
  import numpy
  from augly.image import utils
  from PIL import Image, ImageDraw
label_desc: Use image node_id 8 for calling a global function with example usage: pad_square_bboxes_helper(bbox, src_w, src_h) and returns: pad_bboxes_helper