code: def _hide_pandas_rolling_min_periods_warning(agg):
      if agg == "count":
          with pytest.warns(
              FutureWarning,
              match="min_periods=None will default to the size of window "
              "consistent with other methods in a future version. Specify "
              "min_periods=0 instead.",
          ):
              yield
      else:
          yield
  
imports: import math
  from contextlib import contextmanager
  import numpy
  import pandas
  import pytest
  import cudf
  from cudf.core._compat import PANDAS_GE_150
  from cudf.testing._utils import _create_pandas_series_float64_default, assert_eq
  from cudf.testing.dataset_generator import rand_dataframe
label_desc: Use image node_id 1 for calling a global function with example usage: _hide_pandas_rolling_min_periods_warning(agg) without return types