code: def test_question_type_extractor(self):
      # part of questions are from SQuAD 2.0 dev set article: Steam_engine
      test_data = [
          {
              "question": "On what date did the first railway trip in the world occur?",
              "type": "WHEN",
          },
          {
              "question": "When were attempts made to overcome stationary marketplaces?",
              "type": "WHEN",
          },
          {
              "question": "What year saw the earliest recorded use of the "
              + "steam engine indicator?",
              "type": "WHEN",
          },
          {
              "question": "Where did the world's first railway journey terminate?",
              "type": "WHERE",
          },
          {
              "question": "How many expansion stages are used by the triple "
              + "expansion engine?",
              "type": "NUMBER",
          },
          {
              "question": "Who was the inventor of the atmospheric engine?",
              "type": "WHO",
          },
          {
              "question": "What types of engines are steam engines?",
              "type": "WHAT",
          },
          {
              "question": "What's another term for the pivot mounting?",
              "type": "WHAT",
          },
          {
              "question": "Why the Rankine cycle is often used as a bottoming cycle?",
              "type": "WHY",
          },
          {
              "question": "Will this extractor work as expected?",
              "type": "YES/NO",
          },
          {"question": "Any questions?", "type": "OTHER"},
      ]
      for data in test_data:
          assert data["type"] == get_question_type(data["question"])
  
imports: import spacy
  from negspacy.termsets import termset
  from responsibleai_text.utils.feature_extractors import get_context_overlap, get_question_type
label_desc: Use image node_id 1 for calling the TestFeatureExtractors obj's underlying member method code with example usage: obj.test_question_type_extractor() without return types