code: def setup(self, index, freq, method):
      indexes = {
          "period": period_range(
              start="1/1/2000", end="1/1/2001", freq="min"
          ),
          "datetime": date_range(
              start="1/1/2000", end="1/1/2001", freq="min"
          ),
      }
      idx = indexes[index]
      ts = Series(np.random.randn(len(idx)), index=idx)
      self.resample = getattr(ts.resample(freq), method)
  
imports: from datetime import timedelta
  import dateutil
  import numpy
  from pandas import DataFrame, Series, date_range, period_range, timedelta_range
  from pandas.tseries.frequencies import infer_freq
  from .pandas_vb_common import setup
label_desc: Use image node_id 1 for calling the ResampleSeries obj's underlying member method code with example usage: obj.setup(index, freq, method) without return types