code: def test_groupby_rolling_nans_in_index(self, rollings, key):
      # GH: 34617
      df = DataFrame(
          {
              "a": to_datetime(
                  ["2020-06-01 12:00", "2020-06-01 14:00", np.nan]
              ),
              "b": [1, 2, 3],
              "c": [1, 1, 1],
          }
      )
      if key == "index":
          df = df.set_index("a")
      with pytest.raises(
          ValueError, match=f"{key} values must not have NaT"
      ):
          df.groupby("c").rolling("60min", **rollings)
  
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 27 for calling the TestRolling obj's underlying member method code with example usage: obj.test_groupby_rolling_nans_in_index(rollings, key) without return types