code: def get_scaled_cutout_basic_view(shp, p1, p2, scales):
      
  
      x1, y1 = p1[:2]
      x2, y2 = p2[:2]
      scale_x, scale_y = scales[:2]
      # calculate dimensions of NON-scaled cutout
      old_wd = x2 - x1 + 1
      old_ht = y2 - y1 + 1
      # calculate dimensions of scaled cutout
      new_wd = int(round(scale_x * old_wd))
      new_ht = int(round(scale_y * old_ht))
  
      if len(scales) == 2:
          return get_scaled_cutout_wdht_view(shp, x1, y1, x2, y2, new_wd, new_ht)
  
      z1, z2, scale_z = p1[2], p2[2], scales[2]
      old_dp = z2 - z1 + 1
      new_dp = int(round(scale_z * old_dp))
      return get_scaled_cutout_wdhtdp_view(shp, p1, p2, (new_wd, new_ht, new_dp))
docs: Like get_scaled_cutout_basic, but returns the view/slice to extract
      from an image, instead of the extraction itself