code: def __init__(self, series):
      self.timestamps = []
      self.values = []
  
      # Clean the time series by removing null values.
      for ts in sorted(series):
          if series[ts] is not None:
              self.timestamps.append(int(ts))
              self.values.append(float(series[ts]))
  
imports: import numpy
label_desc: Use image node_id 1 to create a new TimeSeries object from inherited base classes: object with example: obj = TimeSeries(series)