docstr: update the running mean and std
  
  :param data: (np.ndarray) the data
docstr_tok: ["update","the","running","mean","and","std",":","param","data",":","(","np.ndarray",")","the","data"]
code: def update(self, data):
      """
      update the running mean and std
  
      :param data: (np.ndarray) the data
      """
      data = data.astype("float64")
      data_size = int(np.prod(self.shape))
      totalvec = np.zeros(data_size * 2 + 1, "float64")
      addvec = np.concatenate(
          [
              data.sum(axis=0).ravel(),
              np.square(data).sum(axis=0).ravel(),
              np.array([len(data)], dtype="float64"),
          ]
      )
      mpi4py.MPI.COMM_WORLD.Allreduce(
          addvec, totalvec, op=mpi4py.MPI.SUM
      )
      self.incfiltparams(
          totalvec[0:data_size].reshape(self.shape),
          totalvec[data_size : 2 * data_size].reshape(self.shape),
          totalvec[2 * data_size],
      )
  
file_path: stable-baselines/stable_baselines/common/mpi_running_mean_std.py
imports: import mpi4py
  import tensorflow
  import numpy
  import stable_baselines.common.tf_util
label_desc: Use image node_id 2 for calling the RunningMeanStd obj's underlying member method code with example usage: obj.update(data) without return types