code: def _warn_for_deprecations(**kwargs):
      # TODO: remove these warnings in the future
      for k in ("solver", "transparams"):
          if kwargs.pop(k, None):
              warnings.warn(
                  "%s has been deprecated and will be removed in "
                  "a future version." % k,
                  DeprecationWarning,
              )
      return kwargs
  
imports: import numpy
  from sklearn.linear_model import LinearRegression
  import functools
  import time
  import warnings
  from ..base import BaseARIMA
  from .None import _doc
  from .None import _validation
  from .utils import ndiffs, is_constant, nsdiffs
  from ..utils import diff, is_iterable, check_endog
  from ..utils.metaestimators import if_has_delegate
  from ._context import AbstractContext, ContextType
  from .None import _auto_solvers
  from ..compat.numpy import DTYPE
  from ..compat import statsmodels
label_desc: Use image node_id 1 for calling a global function with example usage: _warn_for_deprecations() and returns: kwargs