code: def test_resample_timeseries_dataframe(self):
      with pytest.raises(AssertionError):
          resample_timeseries_dataframe(
              self.df,
              dt_col="z",
              interval="1D",
              start_time="1/1/2019",
              end_time="1/5/2019",
              merge_mode="max",
          )
      with pytest.raises(AssertionError):
          resample_timeseries_dataframe(
              self.df,
              dt_col="z",
              interval="1D",
              start_time="1/1/2019",
              end_time="1/5/2019",
              merge_mode="dummy",
          )
      with pytest.raises(AssertionError):
          resample_timeseries_dataframe(
              self.df,
              dt_col="a",
              interval="1D",
              start_time="1/1/2019",
              end_time="1/5/2019",
              merge_mode="max",
          )
      with pytest.raises(AssertionError):
          resample_timeseries_dataframe(
              self.df,
              dt_col="datetime",
              interval="1D",
              start_time="1/10/2019",
              end_time="1/5/2019",
              merge_mode="max",
          )
      res_df = resample_timeseries_dataframe(
          self.df,
          dt_col="datetime",
          interval="3D",
          start_time="12/20/2018",
          end_time="1/5/2019",
          merge_mode="max",
      )
      assert len(res_df) == 6
  
file_path: analytics-zoo/pyzoo/test/zoo/chronos/data/utils/test_resample.py
imports: import pytest
  import pandas
  import numpy
  from test.zoo.pipeline.utils.test_utils import ZooTestCase
  from zoo.chronos.data.utils.resample import resample_timeseries_dataframe
label_desc: Use image node_id 3 for calling the TestResampleTimeSeries obj's underlying member method code with example usage: obj.test_resample_timeseries_dataframe() without return types