code: def no_crop(im, min_sz=None, interpolation=cv2.INTER_AREA):
      
      r,c,*_ = im.shape
      if min_sz is None: min_sz = min(r,c)
      return cv2.resize(im, (min_sz, min_sz), interpolation=interpolation)
docs: Return a squared resized image