def METHOD_NAME(*args, **kwargs):
    try:
        return f(*args, **kwargs)
    except InvalidMirroringOperation as e:
        error = MirroringOperationErrorCode._VALUES_TO_NAMES[e.code]
        print("Invalid mirroring operation (%s)" % error)