code: def test_persistence_compressed(self):
      fname = get_tmpfile("gensim_models.tst.gz")
      model = rpmodel.RpModel(self.corpus, num_topics=2)
      model.save(fname)
      model2 = rpmodel.RpModel.load(fname, mmap=None)
      self.assertEqual(model.num_topics, model2.num_topics)
      self.assertTrue(np.allclose(model.projection, model2.projection))
      tstvec = []
      self.assertTrue(np.allclose(model[tstvec], model2[tstvec]))
  
file_path: gensim/gensim/test/test_rpmodel.py
imports: import logging
  import unittest
  import numpy
  from gensim.corpora.mmcorpus import MmCorpus
  from gensim.models import rpmodel
  from gensim import matutils
  from gensim.test.utils import datapath, get_tmpfile
label_desc: Use image node_id 4 for calling the TestRpModel obj's underlying member method code with example usage: obj.test_persistence_compressed() without return types