code: def __init__(self, data_id, shape_type, cfg):
      self.data_id = data_id
      if shape_type == "pivot":
          self.builder = PivotBuilder(cfg)
      elif shape_type == "aggregate":
          self.builder = AggregateBuilder(cfg)
      elif shape_type == "transpose":
          self.builder = TransposeBuilder(cfg)
      elif shape_type == "resample":
          self.builder = ResampleBuilder(cfg)
      else:
          raise NotImplementedError(
              "{} data re-shaper not implemented yet!".format(
                  shape_type
              )
          )
  
imports: import pandas
  from scipy import stats
  import dtale.global_state
  import dtale.pandas_util
  from dtale.query import run_query
  from dtale.utils import make_list
label_desc: Use image node_id 1 to create a new DataReshaper object from inherited base classes: object with example: obj = DataReshaper(data_id, shape_type, cfg)