code: def gen_data(self, feature_num=6, sample_num=100):
      return pd.DataFrame(data=np.random.randn(sample_num, feature_num))
  
file_path: analytics-zoo/pyzoo/test/zoo/chronos/detector/anomaly/test_th_detector.py
imports: import pytest
  import numpy
  import pandas
  from test.zoo.pipeline.utils.test_utils import ZooTestCase
  from zoo.chronos.forecaster.lstm_forecaster import LSTMForecaster
  from zoo.chronos.detector.anomaly import ThresholdDetector
label_desc: Use image node_id 3 for calling the TestThresholdDetector obj's underlying member method code with example usage: obj.gen_data(feature_num, sample_num) and returns: pd