GIMP API for "Save color profile" option in file exporting

Hi,
In GIMP file export command, there is “Save color profile” option.

However I can’t find GIMP API for this option. When I try to save the image with Gimp.file_save API or file-tiff-export pdb command using Python, the image will be always saved in sRGB and Color Profile specification will be stripped.

And Gimp.ColorProfile.save_to_file API doesn’t seem for this purpose.

Is there anyone who knows the way to save the image with Color Profile using Python?

Will these help? Get colour profile and save it somewhere (disk or memory, whatever). Set colour profile = use the saved colour profile.

There are a number of other colour profile related API calls.