code: def get_question_type(qtext):
      """Get the question type.
  
      :param qtext: The question text.
      :type qtext: str
      :return: The question type.
      :rtype: str
      """
      if re.search(
          r"\b\A(can|could|will|would|have|has"
          + r"|do|does|did|is|are|was|may|might)\s",
          qtext,
          re.I,
      ):
          return "YES/NO"
      elif re.search(
          r"\b\A(what|which)(\'s|\'re)?\s+(\w+)", qtext, re.I
      ):
          nextword = re.search(
              r"\b\A(what|which)(\'s|\'re)?\s+(\w+)", qtext, re.I
          ).group(3)
          if nextword in ["year", "month", "date", "day"]:
              return "WHEN"
          else:
              return "WHAT"
      elif re.search(r"\bwho(\'s|\'re)?\s", qtext, re.I):
          return "WHO"
      elif re.search(r"\bwhy(\'s|\'re)?\s", qtext, re.I):
          return "WHY"
      elif re.search(r"\bwhere(\'s|\'re)?\s", qtext, re.I):
          return "WHERE"
      elif re.search(r"\bhow(\'s|\'re)?\s", qtext, re.I):
          nextword = re.search(
              r"\b(how)(\'s|\'re)?\s(\w+)", qtext, re.I
          ).group(3)
          if nextword in ["many", "much", "long", "old", "often"]:
              return "NUMBER"
          else:
              return "HOW"
      elif re.search(r"\bwhen(\'s|\'re)?\s", qtext, re.I):
          return "WHEN"
      elif re.search(
          r"\b(in|on|at|by|for|to|from|during|within)"
          + r"\s+(what|which)\s+(year|month|day|date|time)\s",
          qtext,
          re.I,
      ):
          return "WHEN"
      elif re.search(r"\bto\swhom\s", qtext, re.I):
          return "WHO"
      else:
          return "OTHER"
  
file_path: responsible-ai-toolbox/responsibleai_text/responsibleai_text/utils/feature_extractors.py
imports: import re
  from typing import List, Optional, Union
  import pandas
  import spacy
  from negspacy.termsets import termset
  from tqdm import tqdm
  from nlp_feature_extractors import attribute_extractors
  from responsibleai_text.common.constants import ModelTask, QuestionAnsweringFields
label_desc: Use image node_id 5 for calling a global function with example usage: get_question_type(qtext) and returns: str, str, str, str, str, str, str, str, str, str, str, str