code: def compute_bbox(patch_size, centroid, size):
      x, y = centroid
      m, n = size
  
      x_start = int(max(x - patch_size / 2, 0))
      y_start = int(max(y - patch_size / 2, 0))
      x_end = x_start + patch_size
      y_end = y_start + patch_size
      if x_end > m:
          x_end = m
          x_start = m - patch_size
      if y_end > n:
          y_end = n
          y_start = n - patch_size
      return x_start, y_start, x_end, y_end
  
imports: import copy
  import logging
  import os
  import random
  import shutil
  import xml.etree.ElementTree
  from io import BytesIO
  from math import ceil
  import cv2
  import numpy
  import openslide
  import scipy
  from PIL import Image
  from tqdm import tqdm
  from monailabel.datastore.dsa import DSADatastore
  from monailabel.datastore.local import LocalDatastore
  from monailabel.interfaces.datastore import Datastore
  from monailabel.utils.others.generic import get_basename, get_basename_no_ext, is_openslide_supported
label_desc: Use image node_id 9 for calling a global function with example usage: compute_bbox(patch_size, centroid, size) and returns: x_start,  y_start,  x_end,  y_end