code: def get_params(img, output_size):
          
          w, h, *_ = img.shape
  
          th, tw = output_size
          if w == tw and h == th:
              return 0, 0, h, w
  
          i = random.randint(0, h - th)
          j = random.randint(0, w - tw)
          return i, j, th, tw
docs: Get parameters for ``crop`` for a random crop.
  
          Args:
              img (PIL Image): Image to be cropped.
              output_size (tuple): Expected output size of the crop.
  
          Returns:
              tuple: params (i, j, h, w) to be passed to ``crop`` for random crop.