def METHOD_NAME(self, data, key):
    """decrypt data"""
    try:
        plaintext = ""
        # Mocking decrypted response for tests
        if self.key == "mock":
            plaintext = "mock".encode()
        else:
            request = azkms_obj(key).decrypt(EncryptionAlgorithm.rsa_oaep_256, data)
            plaintext = request.plaintext
        return plaintext.decode()
    except Exception as e:
        raise AzureKMSError(e)