code: def index(self, doc: Doc) -> None:
      if doc not in self._doc_to_id:
          i = self._doc_to_id[doc]
          self._index.index_doc(i, doc)
  
file_path: dedupe/dedupe/tfidf.py
imports: import logging
  from typing import List, Tuple
  from dedupe.canopy_index import CanopyIndex
  from dedupe.core import Enumerator
  from dedupe.index import Index
label_desc: Use image node_id 2 for calling the TfIdfIndex obj's underlying member method code with example usage: obj.index(doc) without return types