def METHOD_NAME(orig, dimensions, offset, m1):
    """
    Resample Map using spline-based interpolation.
    """
    nslices = [slice(0, j) for j in list(dimensions)]
    newcoords = np.mgrid[nslices]
    newcoords_dims = list(range(newcoords.ndim))
    # make first index last
    newcoords_dims.append(newcoords_dims.pop(0))
    newcoords_tr = newcoords.transpose(newcoords_dims)
    # makes a view that affects newcoords
    newcoords_tr += offset
    deltas = (np.asarray(orig.shape) - m1) / (dimensions - m1)
    newcoords_tr *= deltas
    newcoords_tr -= offset
    return scipy.ndimage.map_coordinates(orig, newcoords)