code: def moving_average_cumsum(a, n=20):
      # Fast, but doesn't play well with NaNs
      ret = np.cumsum(a, dtype=float)
      ret[n:] = ret[n:] - ret[:-n]
      return ret[n - 1 :] / n
  
file_path: moolib/examples/plot.py
imports: import argparse
  import glob
  import os
  import gnuplotlib
  import numpy
  import pandas
label_desc: Use image node_id 1 for calling a global function with example usage: moving_average_cumsum(a, n) and returns: unknown