code: def test_id_to_term(self, vectorizer_and_dtm):
      vectorizer, _ = vectorizer_and_dtm
      assert isinstance(vectorizer.id_to_term, dict)
      assert all(
          isinstance(key, int) for key in vectorizer.id_to_term.keys()
      )
      assert all(
          isinstance(val, str) for val in vectorizer.id_to_term.values()
      )
      assert len(vectorizer.id_to_term) == len(
          vectorizer.vocabulary_terms
      )
  
imports: import pytest
  import numpy
  from scipy.sparse import coo_matrix
  from textacy import extract, representations
label_desc: Use image node_id 3 for calling the TestVectorizer obj's underlying member method code with example usage: obj.test_id_to_term(vectorizer_and_dtm) without return types