code: def __init__(
      self, max_buffer_length: int = None, keep_last_24h: bool = False
  ):
      self.step = np.array([])
      self.last_step = np.array([])
      self.value = np.array([])
      self.smoothed = []
      self.is_smoothed_updated = False
      self.step_gap = 0
      self.keep_last_24h = keep_last_24h
      if max_buffer_length:
          self.max_buffer_length = max_buffer_length
      else:
          self.max_buffer_length = MAX_BUFFER_LENGTH
  
      try:
          import labml_fast_merge
  
          self.labml_fast_merge = labml_fast_merge
  
          self._merge = self._merge_new
      except ImportError:
          self._merge = self._merge_old
  
imports: import math
  from typing import Dict, List, Optional, Union
  from datetime import datetime, timedelta
  import numpy
label_desc: Use image node_id 1 to create a new Series object  with example: obj = Series(max_buffer_length, keep_last_24h)