code: def smooth_reward_curve(x, y):
      halfwidth = int(
          np.ceil(len(x) / 60)
      )  # Halfwidth of our smoothing convolution
      k = halfwidth
      xsmoo = x
      ysmoo = np.convolve(
          y, np.ones(2 * k + 1), mode="same"
      ) / np.convolve(np.ones_like(y), np.ones(2 * k + 1), mode="same")
      return xsmoo, ysmoo
  
file_path: baselines/baselines/her/experiment/plot.py
imports: import os
  import matplotlib.pyplot
  import numpy
  import json
  import seaborn
  import glob2
  import argparse
label_desc: Use image node_id 1 for calling a global function with example usage: smooth_reward_curve(x, y) and returns: xsmoo,  ysmoo