code: def test_AnomalyDetectorAnalysis__create_detector():
      a = AnomalyDetectorAnalysis(n_folds=3, some_arg=42)
      ad = a._create_detector(AnalysisState(label="label"))
      assert ad.label == "label"
      assert ad.n_folds == 3
      assert ad._suod_kwargs["some_arg"] == 42
  
file_path: autogluon/eda/tests/unittests/analysis/test_anomaly.py
imports: from unittest.mock import MagicMock
  import numpy
  import pandas
  import pytest
  from pandas.testing import assert_frame_equal
  from pyod.models.lof import LOF
  from autogluon.eda import AnalysisState
  from autogluon.eda.analysis import AnomalyDetector, AnomalyDetectorAnalysis
label_desc: Use image node_id 6 for calling a global function with example usage: test_AnomalyDetectorAnalysis__create_detector() without return types