def get_model_list_for_task(task_guide: str) -> str:
    """
    Return the list of models supporting a given task.

    Args:
        task_guide (`str`): The name of the task guide to check.

    Returns:
        `str`: The list of models supporting this task, as links to their respective doc pages separated by commas.
    """
    model_maping_names = TASK_GUIDE_TO_MODELS[task_guide]
    special_model_types = SPECIAL_TASK_GUIDE_TO_MODEL_TYPES.get(task_guide, set())
    model_names = {
        code: name
        for code, name in transformers_module.MODEL_NAMES_MAPPING.items()
        if (code in model_maping_names or code in special_model_types)
    }
    return ", ".join([f"[{name}](../model_doc/{code})" for code, name in model_names.items()]) + "\n"

    Return the list of models supporting a given task.

    Args:
        task_guide (`str`): The name of the task guide to check.

    Returns:
        `str`: The list of models supporting this task, as links to their respective doc pages separated by commas.
    
dpkd/transformers/utils/check_task_guides.py