code: def rand_crop(*args, padding_mode='reflection', p:float=1.):
      "Randomized version of `crop_pad`."
      return crop_pad(*args, **rand_pos, padding_mode=padding_mode, p=pf rand_crop(*args, padding_mode='reflection', p:float=1.):
      "Randomized version of `crop_pad`."
      return crop_pad(*args, **rand_pos, padding_mode=padding_mode, p=p)
docs: Randomized version of `crop_pad`.