code: def __init__(self, init_val: float = float("nan")):
      self._average = init_val
      self._count = 0 if math.isnan(init_val) else 1
  
imports: import math
  from collections import OrderedDict
  from typing import Sequence, Union
  import numpy
  import torch
label_desc: Use image node_id 1 to create a new RunningAverage object  with example: obj = RunningAverage(init_val)