code: def __init__(self, data_id, report_type, cfg):
      self.data_id = data_id
      if report_type == "hpfilter":
          self.report = HPFilter(cfg)
      elif report_type == "bkfilter":
          self.report = BKFilter(cfg)
      elif report_type == "cffilter":
          self.report = CFFilter(cfg)
      elif report_type == "seasonal_decompose":
          self.report = SeasonalDecompose(cfg)
      elif PY3 and report_type == "stl":
          self.report = STLReport(cfg)
      else:
          raise NotImplementedError(
              "{} timeseries analysis not implemented yet!".format(
                  report_type
              )
          )
  
imports: import pandas
  from six import PY3
  from statsmodels.tsa.filters.bk_filter import bkfilter
  from statsmodels.tsa.filters.cf_filter import cffilter
  from statsmodels.tsa.filters.hp_filter import hpfilter
  from statsmodels.tsa.seasonal import seasonal_decompose
  import dtale.global_state
  from dtale.query import run_query
  from dtale.charts.utils import build_base_chart
label_desc: Use image node_id 1 to create a new TimeseriesAnalysis object from inherited base classes: object with example: obj = TimeseriesAnalysis(data_id, report_type, cfg)