class_docstr: IndexDefinition is used to define a index definition for automatic
  indexing on Hash or Json update.
class_docstr_tok: ["IndexDefinition","is","used","to","define","a","index","definition","for","automatic","indexing","on","Hash","or","Json","update","."]
docstr: Append LANGUAGE_FIELD and LANGUAGE.
docstr_tok: ["Append","LANGUAGE_FIELD","and","LANGUAGE","."]
code: def _append_language(self, language_field, language):
      """Append LANGUAGE_FIELD and LANGUAGE."""
      if language_field is not None:
          self.args.append("LANGUAGE_FIELD")
          self.args.append(language_field)
      if language is not None:
          self.args.append("LANGUAGE")
          self.args.append(language)
  
file_path: catboost/contrib/python/redis/py3/redis/commands/search/indexDefinition.py
imports: from enum import Enum
label_desc: Use image node_id 5 for calling the IndexDefinition obj's underlying member method code with example usage: obj._append_language(language_field, language) without return types