def log(self, **key_vals):
        """
        Args:
            slots: ids for the array
            **key_vals:
        """
        for k, v in key_vals.items():
            count = self.cache[k + '@counts'] + 1
            self.cache[k + '@counts'] = count
            self.cache[k] = v + (count - 1) * self.cache[k]
            self.cache[k] /= count

        Args:
            slots: ids for the array
            **key_vals:
        
forward_locomotion/go1_gym_learn/ppo/metrics_caches.py