code: def test_estimator_checks(test_fn):
      clf1 = GaussianMixtureNB()
      clf2 = GaussianMixtureNB(n_components=2)
      clf3 = BayesianGaussianMixtureNB()
      clf4 = BayesianGaussianMixtureNB(n_components=2)
      test_fn(GaussianMixtureNB.__name__, clf1)
      test_fn(GaussianMixtureNB.__name__ + "_components_5", clf2)
      test_fn(BayesianGaussianMixtureNB.__name__, clf3)
      test_fn(
          BayesianGaussianMixtureNB.__name__ + "_components_5", clf4
      )
  
file_path: scikit-lego/tests/test_estimators/test_gmm_naive_bayes.py
imports: import numpy
  import pytest
  from sklego.common import flatten
  from sklego.naive_bayes import BayesianGaussianMixtureNB, GaussianMixtureNB
  from tests.conftest import general_checks, nonmeta_checks, select_tests
label_desc: Use image node_id 1 for calling a global function with example usage: test_estimator_checks(test_fn) without return types