code: def _generate_dataset(seed=0):
      np.random.seed(seed)
      cols = list("AB")
      df = pd.DataFrame(
          np.random.randint(0, 2, size=(1000, 2)), columns=cols
      )
      df["label"] = [0, 1] * int(len(df) / 2)
      return df, cols
  
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 2 for calling a global function with example usage: _generate_dataset(seed) and returns: df,  cols