parameters: (query: str)
return_statement: return [{"value": code, "name": name} for code, name in NAMES.items() if query in name.lower()]
docstring: Searches language names in ISO639-2. Only returns languages with a 2-letter code, except those
      explicitly allowed by the NON_ISO6391_LANGUAGES setting.
      Args:
          query: substring of a language name, e.g. "Fren"
      Returns:
          A list of dicts showing the matches [{"value": "fra", "name": "French"}]
docstring_summary: Searches language names in ISO639-2. Only returns languages with a 2-letter code, except those
      explicitly allowed by the NON_ISO6391_LANGUAGES setting.
      Args:
          query: substring of a language name, e.g. "Fren"
      Returns:
          A list of dicts showing the matches [{"value": "fra", "name": "French"}]
docstring_tokens: Searches language names in ISO639 - 2 . Only returns languages with a 2 - letter code except those explicitly allowed by the NON_ISO6391_LANGUAGES setting . Args : query : substring of a language name e . g . Fren Returns : A list of dicts showing the matches [ { value : fra name : French } ]
function: def search_by_name(query: str):
      """
      Searches language names in ISO639-2. Only returns languages with a 2-letter code, except those
      explicitly allowed by the NON_ISO6391_LANGUAGES setting.
      Args:
          query: substring of a language name, e.g. "Fren"
      Returns:
          A list of dicts showing the matches [{"value": "fra", "name": "French"}]
      """
  
      query = query.lower()
  
      return [{"value": code, "name": name} for code, name in NAMES.items() if query in name.lower()]
function_tokens: def search_by_name ( query : str ) : query = query . lower ( ) return [ { "value" : code , "name" : name } for code , name in NAMES . items ( ) if query in name . lower ( ) ]