def METHOD_NAME(path: str, content):
    import piexif
    exif_dict = piexif.load(path)
    for ifd, ifd_dict in content.items():
        for key, value in ifd_dict.items():
            exif_dict[ifd][key] = value
    piexif.insert(piexif.dump(exif_dict), path)