code: def resample(df, freq, how="mean", **kwargs):
      return getattr(df.resample(freq, **kwargs), how)()
  
imports: from __future__ import annotations
  from itertools import product
  import pandas
  import pytest
  import dask.dataframe
  from dask.dataframe._compat import PANDAS_GE_220
  from dask.dataframe.utils import assert_eq
label_desc: Use image node_id 1 for calling a global function with example usage: resample(df, freq, how) and returns: getattr