code: def test_nmf_attributes(nmf_model):
      assert (
          nmf_model.model_type == "NMF"
      ), "Model type attribute is incorrect"
      assert isinstance(
          nmf_model.model, sklearn.decomposition.NMF
      ), "Model type is incorrect"
      assert (
          nmf_model.num_topics == 3
      ), "Number of topics attribute is incorrect"
      with pytest.raises(AttributeError):
          assert (
              nmf_model.coherence_values
          ), "Coherence values attribute incorrectly exists"
      with pytest.raises(AttributeError):
          assert (
              nmf_model.max_topics
          ), "Maximum topics 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 10 for calling a global function with example usage: test_nmf_attributes(nmf_model) without return types