def get_inverse_transform(transform):
    """Generates a transform which is the inverse of the provided transform"""
    inverse_transform = [0] * len(transform)
    for i in range(len(transform)):
        inverse_transform[transform[i]] = i
    return inverse_transform