code: def _disable_pred_int_enforcement(
      forecaster, enforce_pi: bool
  ) -> bool:
      """Checks to see if prediction interval should be enforced. If it should
      but the forecaster does not support it, the container will be disabled.
  
      Parameters
      ----------
      forecaster : `sktime` compatible forecaster
          forecaster to check for prediction interval capability.
          Can be a dummy object of the forecasting class
      enforce_pi : bool
          Should prediction interval be enforced?
  
      Returns
      -------
      bool
          True if user wants to enforce prediction interval and forecaster
          does not supports it. False otherwise.
      """
      if enforce_pi and not forecaster.get_tag("capability:pred_int"):
          return True
      return False
  
file_path: pycaret/pycaret/utils/time_series/forecasting/models.py
imports: import pandas
  from sktime.forecasting.base import BaseForecaster
  from pycaret.utils.time_series import TSExogenousPresent
label_desc: Use image node_id 1 for calling a global function with example usage: _disable_pred_int_enforcement(forecaster, enforce_pi) and returns: False, True