code: def test_resample_groupby_with_label(unit):
      # GH 13235
      index = date_range("2000-01-01", freq="2D", periods=5, unit=unit)
      df = DataFrame(
          index=index,
          data={"col0": [0, 0, 1, 1, 2], "col1": [1, 1, 1, 1, 1]},
      )
      msg = "DataFrameGroupBy.resample operated on the grouping columns"
      with tm.assert_produces_warning(FutureWarning, match=msg):
          result = df.groupby("col0").resample("1W", label="left").sum()
  
      mi = [
          np.array([0, 0, 1, 2], dtype=np.int64),
          np.array(
              ["1999-12-26", "2000-01-02", "2000-01-02", "2000-01-02"],
              dtype=f"M8[{unit}]",
          ),
      ]
      mindex = pd.MultiIndex.from_arrays(mi, names=["col0", None])
      expected = DataFrame(
          data={"col0": [0, 0, 2, 2], "col1": [1, 1, 2, 1]},
          index=mindex,
      )
  
      tm.assert_frame_equal(result, expected)
  
imports: from textwrap import dedent
  import numpy
  import pytest
  from pandas.compat import is_platform_windows
  import pandas
  from pandas import DataFrame, Index, Series, TimedeltaIndex, Timestamp
  import pandas._testing
  from pandas.core.indexes.datetimes import date_range
label_desc: Use image node_id 16 for calling a global function with example usage: test_resample_groupby_with_label(unit) without return types