def METHOD_NAME(aligned_image_path, original_image_path):
    aligned_dataset = gdal.Open(aligned_image_path, gdal.GA_Update)
    original_dataset = gdal.Open(original_image_path, gdal.GA_ReadOnly)
    aligned_dataset.SetMetadata(original_dataset.GetMetadata())
    rpcs = original_dataset.GetMetadata('RPC')
    aligned_dataset.SetMetadata(rpcs, 'RPC')
    aligned_dataset.SetGeoTransform(original_dataset.GetGeoTransform())
    aligned_dataset.SetProjection(original_dataset.GetProjection())
    aligned_dataset = None
    original_dataset = None