code: def test_groupby_resample_preserves_subclass(obj):
      # GH28330 -- preserve subclass through groupby.resample()
  
      df = obj(
          {
              "Buyer": "Carl Carl Carl Carl Joe Carl".split(),
              "Quantity": [18, 3, 5, 1, 9, 3],
              "Date": [
                  datetime(2013, 9, 1, 13, 0),
                  datetime(2013, 9, 1, 13, 5),
                  datetime(2013, 10, 1, 20, 0),
                  datetime(2013, 10, 3, 10, 0),
                  datetime(2013, 12, 2, 12, 0),
                  datetime(2013, 9, 2, 14, 0),
              ],
          }
      )
      df = df.set_index("Date")
  
      # Confirm groupby.resample() preserves dataframe type
      msg = "DataFrameGroupBy.resample operated on the grouping columns"
      with tm.assert_produces_warning(
          FutureWarning, match=msg, raise_on_extra_warnings=False
      ):
          result = df.groupby("Buyer").resample("5D").sum()
      assert isinstance(result, obj)
  
file_path: pandas/pandas/tests/groupby/test_groupby_subclass.py
imports: from datetime import datetime
  import numpy
  import pytest
  from pandas import DataFrame, Index, Series
  import pandas._testing
  from pandas.tests.groupby import get_groupby_method_args
label_desc: Use image node_id 3 for calling a global function with example usage: test_groupby_resample_preserves_subclass(obj) without return types