code: def ignore_pandas_nan_categorical_warning():
      with warnings.catch_warnings():
          # Pandas >= 0.18 doesn't like null-ish values in categories, but
          # avoiding that requires a broader change to how missing values are
          # handled in pipeline, so for now just silence the warning.
          warnings.filterwarnings(
              "ignore",
              category=FutureWarning,
          )
          yield
  
imports: from contextlib import contextmanager
  from copy import deepcopy
  from itertools import product
  import operator
  import warnings
  import numpy
  import pandas
  from distutils.version import StrictVersion
  from trading_calendars.utils.pandas_utils import days_at_time
label_desc: Use image node_id 9 for calling a global function with example usage: ignore_pandas_nan_categorical_warning() without return types