code: def roll_arr(arr, stride):
      return np.asarray(
          [arr[i : i + stride] for i in range(len(arr) - stride + 1)]
      )
  
file_path: BigDL/python/chronos/src/bigdl/chronos/detector/anomaly/util.py
imports: import numpy
  from logging import warning
label_desc: Use image node_id 2 for calling a global function with example usage: roll_arr(arr, stride) and returns: np