code: def moving_average(x, window=1, mode="same"):
      """Compute moving average of a 1-D numpy array
  
      Parameters
      ----------
      x : array_like
          1D-like array required to compute moving average
      window : int
          window size to compute moving average of the array
      mode : str
          one of the ['full', 'same', valid']. See `numpy.convolve` for details.
      Returns
      -------
          moving average of a 1-D array
      """
      return np.convolve(x, np.ones(window), mode=mode) / window
  
file_path: orbit/orbit/utils/features.py
imports: import numpy
  import pandas
  from orbit.exceptions import IllegalArgument
label_desc: Use image node_id 5 for calling a global function with example usage: moving_average(x, window, mode) and returns: unknown