code: def _bbs2sizes(crops, init_sz, use_square=True):
      bb = crops.flip(1)
      szs = bb[1] - bb[0]
      if use_square:
          szs = szs.max(0)[0][None].repeat((2, 1))
      overs = (szs + bb[0]) > init_sz
      bb[0][overs] = init_sz - szs[overs]
      lows = bb[0] / float(init_sz)
      return lows, szs / float(init_sz)
  
imports: from __future__ import annotations
  from ..basics import *
  from ..vision.all import *
  from ..data.transforms import *
  import pydicom, kornia, skimage
  from pydicom.dataset import Dataset
  from pydicom.tag import BaseTag
  from pydicom.multival import MultiValue
  from PIL import Image
label_desc: Use image node_id 22 for calling a global function with example usage: _bbs2sizes(crops, init_sz, use_square) and returns: lows,  unknown