code: def gettext(*args, **kwargs):
      
      key = args[0]
      key_match = TRANSLATION_KEY_RE.match(key)
      translation = _gettext(*args, **kwargs)
      if not key_match or translation != key:
          return translation
  
      return _get_domain(key_match).gettext(*args, **kwargs)
docs: Return the localized translation of message, based on the language, and
      locale directory of the domain specified in the translation key (or the
      current global domain). This function is usually aliased as ``_``.