docstr: Generate input samples from rolling
docstr_tok: ["Generate","input","samples","from","rolling"]
code: def roll_data(self, dataset, look_back, target_col_indexes):
      """
      Generate input samples from rolling
      """
      X, Y = [], []
      data = dataset.to_numpy()
      for i in range(len(dataset) - look_back - 1):
          X.append(data[i : (i + look_back)])
          # Y.append(dataset.iloc[i + look_back, target_col_indexes])
          Y.append(data[i + look_back][target_col_indexes])
      return np.array(X), np.array(Y)
  
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 5 for calling the TestThresholdDetector obj's underlying member method code with example usage: obj.roll_data(dataset, look_back, target_col_indexes) and returns: np,  np