class_docstr: Monitor Simple Moving Average (SMA), i.e. an average within a sliding window,
  of some tensors.
class_docstr_tok: ["Monitor","Simple","Moving","Average","(","SMA",")",",","i.e",".","an","average","within","a","sliding","window",",","of","some","tensors","."]
code: def _trigger_step(self):
      if self.global_step % self._window == 0:
          averages = np.asarray(self._queue).mean(axis=0)
          for name, avg in zip(self._display_names, averages):
              self.trainer.monitors.put_scalar(name + "/SMA", avg)
  
imports: import numpy
  from collections import deque
  from ..compat import tfv1
  from ..tfutils.common import get_op_tensor_name
  from ..utils import logger
  from ..utils.naming import MOVING_SUMMARY_OPS_KEY
  from .base import Callback
label_desc: Use image node_id 5 for calling the SimpleMovingAverage obj's underlying member method code with example usage: obj._trigger_step() without return types