code: def test_resample_timedelta_idempotency():
      # GH 12072
      index = timedelta_range("0", periods=9, freq="10ms")
      series = Series(range(9), index=index)
      result = series.resample("10ms").mean()
      expected = series.astype(float)
      tm.assert_series_equal(result, expected)
  
imports: from datetime import timedelta
  import numpy
  import pytest
  import pandas.util._test_decorators
  import pandas
  from pandas import DataFrame, Series
  import pandas._testing
  from pandas.core.indexes.timedeltas import timedelta_range
label_desc: Use image node_id 6 for calling a global function with example usage: test_resample_timedelta_idempotency() without return types