code: def check_reductions_runtime_warning():
      if PANDAS_GE_200 and not PANDAS_GE_201:
          with warnings.catch_warnings():
              warnings.filterwarnings(
                  "ignore",
                  message="invalid value encountered in double_scalars|Degrees of freedom <= 0 for slice",
                  category=RuntimeWarning,
              )
              yield
      else:
          yield
  
imports: from __future__ import annotations
  import contextlib
  import string
  import warnings
  import numpy
  import pandas
  from packaging.version import Version
  import pandas.testing
label_desc: Use image node_id 19 for calling a global function with example usage: check_reductions_runtime_warning() without return types