code: def test_transform(self):
      # create the transformation model
      model = tfidfmodel.TfidfModel(self.corpus, normalize=True)
  
      # transform one document
      doc = list(self.corpus)[0]
      transformed = model[doc]
  
      expected = [
          (0, 0.57735026918962573),
          (1, 0.57735026918962573),
          (2, 0.57735026918962573),
      ]
      self.assertTrue(np.allclose(transformed, expected))
  
file_path: gensim/gensim/test/test_tfidfmodel.py
imports: import logging
  import unittest
  import numpy
  from gensim.corpora.mmcorpus import MmCorpus
  from gensim.models import tfidfmodel
  from gensim.test.utils import datapath, get_tmpfile, common_dictionary, common_corpus
  from gensim.corpora import Dictionary
label_desc: Use image node_id 2 for calling the TestTfidfModel obj's underlying member method code with example usage: obj.test_transform() without return types