code: def __init__(self, obj, by=None, level=None):
      self._freq = getattr(by, "freq", None)
      super().__init__(obj, by, level)
  
imports: import pickle
  import numpy
  import pandas
  import cudf
  import cudf._lib.labeling
  import cudf.core.index
  from cudf._typing import DataFrameOrSeries
  from cudf.core.groupby.groupby import DataFrameGroupBy, GroupBy, SeriesGroupBy, _Grouping
  from cudf.core.tools.datetimes import _offset_alias_to_code, _unit_dtype_map
label_desc: Use image node_id 1 to create a new _ResampleGrouping object from inherited base classes: _Grouping with example: obj = _ResampleGrouping(obj, by, level)