code: def test_groupby_subset_rolling_subset_with_closed(self):
      # GH 35549
      df = DataFrame(
          {
              "column1": range(8),
              "column2": range(8),
              "group": ["A"] * 4 + ["B"] * 4,
              "date": [
                  Timestamp(date)
                  for date in [
                      "2019-01-01",
                      "2019-01-01",
                      "2019-01-02",
                      "2019-01-02",
                  ]
              ]
              * 2,
          }
      )
  
      result = (
          df.groupby("group")[["column1", "date"]]
          .rolling("1D", on="date", closed="left")["column1"]
          .sum()
      )
      expected = Series(
          [np.nan, np.nan, 1.0, 1.0, np.nan, np.nan, 9.0, 9.0],
          index=MultiIndex.from_frame(
              df[["group", "date"]],
              names=["group", "date"],
          ),
          name="column1",
      )
      tm.assert_series_equal(result, expected)
  
imports: import numpy
  import pytest
  from pandas import DataFrame, DatetimeIndex, Index, MultiIndex, Series, Timestamp, date_range, to_datetime
  import pandas._testing
  from pandas.api.indexers import BaseIndexer
  from pandas.core.groupby.groupby import get_groupby
label_desc: Use image node_id 20 for calling the TestRolling obj's underlying member method code with example usage: obj.test_groupby_subset_rolling_subset_with_closed() without return types