code: def deserialize(cls, header, frames):
      obj_type = pickle.loads(header["obj_type"])
      obj = obj_type.deserialize(
          header["obj"], frames[: header["num_obj_frames"]]
      )
      grouping = _ResampleGrouping.deserialize(
          header["grouping"], frames[header["num_obj_frames"] :]
      )
      resampler_cls = pickle.loads(header["resampler_type"])
      out = resampler_cls.__new__(resampler_cls)
      out.grouping = grouping
      super().__init__(out, obj, by=grouping)
      return out
  
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 6 for calling the _Resampler obj's underlying member method code with example usage: obj.deserialize(cls, header, frames) and returns: out