code: def get_object_roi(
      pred_mask, clicks_list, expansion_ratio, min_crop_size
  ):
      pred_mask = pred_mask.copy()
  
      for click in clicks_list:
          if click.is_positive:
              pred_mask[int(click.coords[0]), int(click.coords[1])] = 1
  
      bbox = get_bbox_from_mask(pred_mask)
      bbox = expand_bbox(bbox, expansion_ratio, min_crop_size)
      h, w = pred_mask.shape[0], pred_mask.shape[1]
      bbox = clamp_bbox(bbox, 0, h - 1, 0, w - 1)
  
      return bbox
  
file_path: PaddleSeg/EISeg/eiseg/inference/transforms/zoom_in.py
imports: import paddle
  import numpy
  from inference.clicker import Click
  from util.misc import get_bbox_iou, get_bbox_from_mask, expand_bbox, clamp_bbox
  from .base import BaseTransform
label_desc: Use image node_id 1 for calling a global function with example usage: get_object_roi(pred_mask, clicks_list, expansion_ratio, min_crop_size) and returns: bbox