code: def test_resample_interpolate(index):
      # GH#12925
      df = DataFrame(range(len(index)), index=index)
      warn = None
      if isinstance(df.index, PeriodIndex):
          warn = FutureWarning
      msg = "Resampling with a PeriodIndex is deprecated"
      with tm.assert_produces_warning(warn, match=msg):
          result = df.resample("1min").asfreq().interpolate()
          expected = df.resample("1min").interpolate()
      tm.assert_frame_equal(result, expected)
  
imports: from datetime import datetime
  import numpy
  import pytest
  from pandas import DataFrame, DatetimeIndex, Index, MultiIndex, NaT, PeriodIndex, Series, TimedeltaIndex
  import pandas._testing
  from pandas.core.groupby.groupby import DataError
  from pandas.core.groupby.grouper import Grouper
  from pandas.core.indexes.datetimes import date_range
  from pandas.core.indexes.period import period_range
  from pandas.core.indexes.timedeltas import timedelta_range
  from pandas.core.resample import _asfreq_compat
label_desc: Use image node_id 3 for calling a global function with example usage: test_resample_interpolate(index) without return types