class_docstr: Bounding box of the annotation.
class_docstr_tok: ["Bounding","box","of","the","annotation","."]
code: def get_expanded_box(self, ratio=0.1, max_x=None, max_y=None):
      w = self.maxx - self.minx
      h = self.maxy - self.miny
      y_mar = int(w * ratio)
      x_mar = int(h * ratio)
      maxx = (
          min(max_x, self.maxx + x_mar) if max_x else self.maxx + x_mar
      )
      minx = max(0, self.minx - x_mar)
      maxy = (
          min(max_y, self.maxy + y_mar) if max_y else self.maxy + y_mar
      )
      miny = max(0, self.miny - y_mar)
      box = [minx, miny, maxx, maxy]
      return BoundingBox(box)
  
imports: import copy
  from typing import Dict, List, Optional
  import numpy
  from sahi.utils.coco import CocoAnnotation, CocoPrediction
  from sahi.utils.cv import get_bbox_from_bool_mask, get_bool_mask_from_coco_segmentation, get_coco_segmentation_from_bool_mask
  from sahi.utils.shapely import ShapelyAnnotation
label_desc: Use image node_id 4 for calling the BoundingBox obj's underlying member method code with example usage: obj.get_expanded_box(ratio, max_x, max_y) and returns: BoundingBox