code: def warn_for_D(d, D):
      """Warn for large values of D"""
      if D >= 2:
          warnings.warn(
              "Having more than one seasonal differences is "
              "not recommended. Please consider using only one "
              "seasonal difference.",
              ModelFitWarning,
          )
      # if D is -1, this will be off, so we include the OR
      # TODO: @FutureTayTay.. how can D be -1?
      elif D + d > 2 or d > 2:
          warnings.warn(
              "Having 3 or more differencing operations is not "
              "recommended. Please consider reducing the total "
              "number of differences.",
              ModelFitWarning,
          )
  
file_path: pmdarima/pmdarima/arima/_validation.py
imports: import numpy
  import warnings
  from sklearn import metrics
  from pmdarima.warnings import ModelFitWarning
label_desc: Use image node_id 9 for calling a global function with example usage: warn_for_D(d, D) without return types