code: def test_save_load(tmpdir, model):
      filepath = str(tmpdir.join("model.pkl"))
      expected = model.model.components_
      model.save(filepath)
      tmp_model = TopicModel.load(filepath)
      observed = tmp_model.model.components_
      assert observed.shape == expected.shape
      assert np.equal(observed, expected).all()
  
imports: import numpy
  import pytest
  from sklearn.decomposition import NMF, LatentDirichletAllocation, TruncatedSVD
  from textacy import Corpus
  from textacy import extract
  from textacy.tm import TopicModel
  from textacy.representations import Vectorizer
label_desc: Use image node_id 8 for calling a global function with example usage: test_save_load(tmpdir, model) without return types