code: def test_lda_attributes(_gensim, lda_model):
      assert (
          lda_model.model_type == "LDA"
      ), "Model type attribute is incorrect"
      assert isinstance(
          lda_model.model, _gensim.models.ldamodel.LdaModel
      ), "Model type is incorrect"
      assert lda_model.num_topics == len(
          lda_model._model.get_topics()
      ), "Number of topics attribute is incorrect"
      assert (
          len(lda_model.coherence_values)
          == lda_model.max_topics - lda_model.min_topics + 1
      ), "Length of coherence values list is incorrect"
      assert (
          lda_model.min_topics == 2
      ), "Minimum topics attribute is incorrect"
      assert (
          lda_model.max_topics == 6
      ), "Maximum topics attribute is incorrect"
  
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 7 for calling a global function with example usage: test_lda_attributes(_gensim, lda_model) without return types