code: def running_mean(x, N, total_length=-1):
      cumsum = np.cumsum(np.insert(x, 0, 0))
      to_pad = max(total_length - len(cumsum), 0)
      return np.pad(cumsum[N:] - cumsum[:-N], (to_pad, 0)) / float(N)
  
file_path: gradio/demo/dashboard/helpers.py
imports: import collections
  from datetime import datetime
  from datasets import DatasetDict, load_dataset
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: running_mean(x, N, total_length) and returns: unknown