code: def __init__(self, values: Optional[Iterable[float]] = None):
      if values is None:
          values = list()
      self.n = 0  # Running count of our values
      self.mu = 0.0  # Running mean of our values
      self.m2 = 0.0  # Running variance numerator (sum of (x - mean)^2)
      self.maxValue = float("-inf")
      self.minValue = float("inf")
  
      for v in values:
          self.merge(v)
  
file_path: spark/python/pyspark/statcounter.py
imports: import copy
  import math
  from typing import Dict, Iterable, Optional
label_desc: Use image node_id 1 to create a new StatCounter object  with example: obj = StatCounter(values)