code: def test_linker_resolves_abbreviations(self):
      self.nlp.add_pipe("abbreviation_detector")
      # replace abbreivation with "CNN" so spacy recognizes at as en entity
      # and also prefix the term with "CNN" so that abbreviation detector passes
      text = "CNN1-Methyl-4-phenylpyridinium (CNN) is an abbreviation which doesn't exist in the baby index."
      doc = self.nlp(text)
      doc = self.linker(doc)
  
      id_with_score = doc.ents[0]._.kb_ents[0]
      assert id_with_score == ("C0000098", 0.9819725155830383)
      umls_entity = self.linker.kb.cui_to_entity[id_with_score[0]]
      assert umls_entity.concept_id == "C0000098"
  
file_path: scispacy/tests/test_linking.py
imports: import unittest
  import tempfile
  import spacy
  from scispacy.candidate_generation import CandidateGenerator, create_tfidf_ann_index
  from scispacy.linking import EntityLinker
  from scispacy.umls_utils import UmlsKnowledgeBase
  from scispacy.abbreviation import AbbreviationDetector
label_desc: Use image node_id 3 for calling the TestLinker obj's underlying member method code with example usage: obj.test_linker_resolves_abbreviations() without return types