def METHOD_NAME(action):  # pylint: disable=too-many-return-statements
    if action.__class__.__name__ in ["EntitiesTask", "EntitiesLROTask"]:
        return _AnalyzeActionsType.RECOGNIZE_ENTITIES
    if action.__class__.__name__ in ["PiiTask", "PiiLROTask"]:
        return _AnalyzeActionsType.RECOGNIZE_PII_ENTITIES
    if action.__class__.__name__ in ["EntityLinkingTask", "EntityLinkingLROTask"]:
        return _AnalyzeActionsType.RECOGNIZE_LINKED_ENTITIES
    if action.__class__.__name__ in ["SentimentAnalysisTask", "SentimentAnalysisLROTask"]:
        return _AnalyzeActionsType.ANALYZE_SENTIMENT
    if action.__class__.__name__ == "CustomEntitiesLROTask":
        return _AnalyzeActionsType.RECOGNIZE_CUSTOM_ENTITIES
    if action.__class__.__name__ == "CustomSingleLabelClassificationLROTask":
        return _AnalyzeActionsType.SINGLE_LABEL_CLASSIFY
    if action.__class__.__name__ == "CustomMultiLabelClassificationLROTask":
        return _AnalyzeActionsType.MULTI_LABEL_CLASSIFY
    if action.__class__.__name__ == "HealthcareLROTask":
        return _AnalyzeActionsType.ANALYZE_HEALTHCARE_ENTITIES
    if action.__class__.__name__ == "ExtractiveSummarizationLROTask":
        return _AnalyzeActionsType.EXTRACT_SUMMARY
    if action.__class__.__name__ == "AbstractiveSummarizationLROTask":
        return _AnalyzeActionsType.ABSTRACT_SUMMARY
    return _AnalyzeActionsType.EXTRACT_KEY_PHRASES