code: def get_language(text: str) -> Tuple[str, float]:
      """Get languages of a text using langdetect model.
      Get the language with the highest probability or no language if only a few words or a low probability
  
      Args:
      ----
          text (str): text
  
      Returns:
      -------
          The detected language in ISO 639 code and confidence score
      """
      try:
          lang = detect_langs(text.lower())[0]
      except LangDetectException:
          return "unknown", 0.0
      if len(text) <= 1 or (len(text) <= 5 and lang.prob <= 0.2):
          return "unknown", 0.0
      return lang.lang, lang.prob
  
file_path: doctr/doctr/models/_utils.py
imports: from math import floor
  from statistics import median_low
  from typing import Any, Dict, List, Optional, Tuple, Union
  import cv2
  import numpy
  from langdetect import LangDetectException, detect_langs
label_desc: Use image node_id 5 for calling a global function with example usage: get_language(text) and returns: lang,  lang, str,  int, str,  int