docstr: Clip bboxes coordinates that are outside image dimensions.
docstr_tok: ["Clip","bboxes","coordinates","that","are","outside","image","dimensions","."]
code: def _clip_bboxes(xyxy, h, w):
      """Clip bboxes coordinates that are outside image dimensions."""
      x1, y1, x2, y2 = xyxy
      if w >= h:
          pad = (w - h) // 2
          h1 = pad
          h2 = w - pad
          return (x1, max(y1, h1), x2, min(y2, h2))
      else:
          pad = (h - w) // 2
          w1 = pad
          w2 = h - pad
          return (max(x1, w1), y1, min(x2, w2), y2)
  
imports: import albumentations
  from itertools import chain
  from icevision.imports import *
  from icevision.utils import *
  from icevision.core import *
  from icevision.tfms.transform import *
  from icevision.tfms.albumentations.albumentations_helpers import get_size_without_padding, get_transform
label_desc: Use image node_id 3 for calling the AlbumentationsBBoxesComponent obj's underlying member method code with example usage: obj._clip_bboxes(xyxy, h, w) and returns: x1,  max,  x2,  min, max,  y1,  min,  y2