code: def __init__(self, state_shape):
      self._states = {}
      for key in state_shape:
          shape = state_shape[key]
          self._states[key] = {
              "sum": tf.Variable(tf.zeros(shape, dtype=tf.float32)),
              "count": tf.Variable(tf.zeros([], dtype=tf.float32)),
          }
  
imports: import tensorflow
  import numpy
label_desc: Use image node_id 1 to create a new DictMean object  with example: obj = DictMean(state_shape)