code: def rolling_window(array, window):
      """
      apply a rolling window to a np.ndarray
  
      :param array: (np.ndarray) the input Array
      :param window: (int) length of the rolling window
      :return: (np.ndarray) rolling window on the input array
      """
      shape = array.shape[:-1] + (array.shape[-1] - window + 1, window)
      strides = array.strides + (array.strides[-1],)
      return np.lib.stride_tricks.as_strided(
          array, shape=shape, strides=strides
      )
  
file_path: stable-baselines/stable_baselines/results_plotter.py
imports: import numpy
  import matplotlib
  import matplotlib.pyplot
  from stable_baselines.bench.monitor import load_results
label_desc: Use image node_id 1 for calling a global function with example usage: rolling_window(array, window) and returns: np