code: def test_obvious_usecase_github(model):
      # from this bug: https://github.com/koaning/scikit-lego/issues/225 thanks Corrie!
      np.random.seed(42)
      X = np.random.normal(-10, 1, (2000, 2))
      mod = model(n_components=1, threshold=0.99).fit(X)
  
      df = pd.DataFrame(
          {
              "x1": X[:, 0],
              "x2": X[:, 1],
              "loglik": mod.score_samples(X),
              "prediction": mod.predict(X).astype(str),
          }
      )
      assert df.loc[lambda d: d["prediction"] == "-1"].shape[0] == 20
  
file_path: scikit-lego/tests/test_estimators/test_mixture_detector.py
imports: import numpy
  import pandas
  import pytest
  from sklego.common import flatten
  from sklego.mixture import BayesianGMMOutlierDetector, GMMOutlierDetector
  from tests.conftest import general_checks, nonmeta_checks, outlier_checks, select_tests
label_desc: Use image node_id 8 for calling a global function with example usage: test_obvious_usecase_github(model) without return types