code: def zoom_crop(scale:float, do_rand:bool=False, p:float=1.0):
      "Randomly zoom and/or crop."
      zoom_fn = rand_zoom if do_rand else zoom
      crop_fn = rand_crop if do_rand else crop_pad
      return [zoom_fn(scale=scale, p=p), crop_fn()f zoom_crop(scale:float, do_rand:bool=False, p:float=1.0):
      "Randomly zoom and/or crop."
      zoom_fn = rand_zoom if do_rand else zoom
      crop_fn = rand_crop if do_rand else crop_pad
      return [zoom_fn(scale=scale, p=p), crop_fn()]
docs: Randomly zoom and/or crop.