Anonymizing instance before storage using python

Hello,
Im aware that it is possible to modify instances received by Orthanc before they are stored in the storage using the Python plugin and calling
orthanc.ReceivedInstanceAction.MODIFY

Is a method such as
orthanc.ReceivedInstanceAction.ANONYMIZE available that would allow the instance to be anonymized with the option of not anonymizing a few tags of my choice?

If not how can this be achieved?