code: def test_lda_intermediates(_gensim, lda_model):
      assert isinstance(
          lda_model.dictionary, _gensim.corpora.dictionary.Dictionary
      ), "Output is not of the expected return type of Gensim Dictionary object"
      assert isinstance(
          lda_model.corpus[0], list
      ), "Output does not contain expected type of lists inside of return value"
      with pytest.raises(AttributeError):
          assert lda_model.matrix, "Matrix attribute incorrectly exist"
  
imports: import pandas
  import numpy
  import matplotlib
  import sklearn
  import pytest
  from data_describe.text.topic_modeling import topic_model
label_desc: Use image node_id 11 for calling a global function with example usage: test_lda_intermediates(_gensim, lda_model) without return types