code: def _hide_deprecated_pandas_categorical_inplace_warnings(
      function_name,
  ):
      with warnings.catch_warnings():
          warnings.filterwarnings(
              "ignore",
              (
                  "The `inplace` parameter in "
                  f"pandas.Categorical.{function_name} is deprecated and will "
                  "be removed in a future version."
              ),
              category=FutureWarning,
          )
          yield
  
imports: import operator
  import string
  import warnings
  from contextlib import contextmanager
  from textwrap import dedent
  import numpy
  import pandas
  import pytest
  import cudf
  from cudf.core._compat import PANDAS_GE_134
  from cudf.testing._utils import NUMERIC_TYPES, assert_eq, assert_exceptions_equal, expect_warning_if
label_desc: Use image node_id 1 for calling a global function with example usage: _hide_deprecated_pandas_categorical_inplace_warnings(function_name) without return types