code: def test_create_index(self):
      umls_fixture = UmlsKnowledgeBase(
          "tests/fixtures/umls_test_fixture.json"
      )
      with tempfile.TemporaryDirectory() as dir_name:
          (
              umls_concept_aliases,
              tfidf_vectorizer,
              ann_index,
          ) = create_tfidf_ann_index(dir_name, umls_fixture)
  
      assert len(umls_concept_aliases) == 93
      assert (
          len(ann_index) == 93
      )  # Number of deduplicated aliases + canonical ids
      tfidf_params = tfidf_vectorizer.get_params()
  
      assert tfidf_params["analyzer"] == "char_wb"
      assert tfidf_params["min_df"] == 10
      assert tfidf_params["ngram_range"] == (3, 3)
  
file_path: scispacy/tests/test_candidate_generation.py
imports: import unittest
  import tempfile
  from scispacy.candidate_generation import CandidateGenerator, create_tfidf_ann_index, MentionCandidate
  from scispacy.umls_utils import UmlsKnowledgeBase
label_desc: Use image node_id 1 for calling the TestCandidateGeneration obj's underlying member method code with example usage: obj.test_create_index() without return types