def METHOD_NAME(cls, duplicate_result, update_article_id):
    if update_article_id is None:
        result = -1
    elif duplicate_result == "itself" or duplicate_result == "none":
        result = 1
    else:
        result = 0
    def mock(*args, **kwargs):
        print(duplicate_result, update_article_id)
        if result == -1:
            raise exceptions.ConfigurationException
        if result == 0:
            raise exceptions.DuplicateArticleException("duplicate result is 'different'")
        return 1
    return mock