def METHOD_NAME(self, documents: List[Document]) -> Tuple[Dict[str, List[Document]], str]:  # type: ignore
    """
    Run language document classifier on a list of documents.
    :param documents: A list of documents whose language you want to detect.
    """
    docs_with_languages = self.predict(documents=documents)
    output = {"documents": docs_with_languages}
    if self.route_by_language is False:
        return output, "output_1"
    # self.route_by_language is True
    languages = [doc.meta["language"] for doc in docs_with_languages]
    unique_languages = list(set(languages))
    if len(unique_languages) > 1:
        raise ValueError(
            f"If the route_by_language parameter is True, Documents of multiple languages ({unique_languages}) are not allowed together. "
            "If you want to route documents by language, you can call Pipeline.run() once for each Document."
        )
    language = unique_languages[0]
    if language is None:
        logger.warning(
            "The model cannot detect the language of any of the documents."
            "The first language in the list of supported languages will be used to route the document: %s",
            self.languages_to_route[0],
        )
        language = self.languages_to_route[0]
    if language not in self.languages_to_route:
        raise ValueError(
            f"'{language}' is not in the list of languages to route ({', '.join(self.languages_to_route)})."
            f"You should specify them when initializing the node, using the parameter languages_to_route."
        )
    return output, self._get_edge_from_language(str(language))