code: def text_classification_mappings():
      """Text classification index mappings"""
      return {
          "_source": mappings.source(
              excludes=[
                  "predicted",
                  "predicted_as",
                  "predicted_by",
                  "annotated_as",
                  "annotated_by",
                  "score",
              ]
          ),
          "properties": {
              "inputs": {
                  "type": "object",
                  "dynamic": True,
              },
              "explanation": {
                  "type": "object",
                  "dynamic": True,
                  "enabled": False,  # Won't search by explanation
              },
              "predicted": mappings.keyword_field(),
              "multi_label": {"type": "boolean"},
              "annotated_as": mappings.keyword_field(
                  enable_text_search=True
              ),
              "predicted_as": mappings.keyword_field(
                  enable_text_search=True
              ),
              "score": mappings.decimal_field(),
          },
          "dynamic_templates": [
              {
                  "inputs.*": {
                      "path_match": "inputs.*",
                      "mapping": mappings.text_field(),
                  }
              }
          ],
      }
  
label_desc: Use image node_id 1 for calling a global function with example usage: text_classification_mappings() and returns: dict