code: def auto_intercept(with_intercept, default):
      """A more concise way to handle the default behavior of with_intercept"""
      if with_intercept == "auto":
          return default
      return with_intercept
  
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 1 for calling a global function with example usage: auto_intercept(with_intercept, default) and returns: with_intercept, default