code: def _roll_ndarray(func, window, *args, **kwargs):
      data = []
      for i in range(window, len(args[0]) + 1):
          rets = [s[i - window : i] for s in args]
          data.append(func(*rets, **kwargs))
      return np.array(data)
  
imports: from datetime import datetime
  from functools import wraps
  from os import makedirs, environ
  from os.path import expanduser, join, getmtime, isdir
  import errno
  import warnings
  import numpy
  from numpy.lib.stride_tricks import as_strided
  import pandas
  from pandas.tseries.offsets import BDay
  from .deprecate import deprecated
label_desc: Use image node_id 4 for calling a global function with example usage: _roll_ndarray(func, window) and returns: np