code: def monkey_patch_cat_dtype():
      patsy.util.safe_is_pandas_categorical_dtype = (
          _safe_is_pandas_categorical_dtype
      )
  
imports: from statsmodels.compat.pandas import PD_LT_2
  import pandas
  import patsy.util
label_desc: Use image node_id 2 for calling a global function with example usage: monkey_patch_cat_dtype() without return types