code: def _check_warn_deprecated(
      param, name, default, additional_message=None
  ):
      if param != "deprecated":
          msg = f"'{name}' is deprecated in version 1.1 and will be removed in version 1.4."
          if additional_message:
              msg += f" {additional_message}"
          warnings.warn(msg, FutureWarning)
          return param
      else:
          return default
  
imports: import itertools
  import sys
  import time
  import warnings
  from math import ceil
  from numbers import Integral, Real
  import numpy
  from joblib import effective_n_jobs
  from scipy import linalg
  from ..base import BaseEstimator, ClassNamePrefixFeaturesOutMixin, TransformerMixin, _fit_context
  from ..linear_model import Lars, Lasso, LassoLars, orthogonal_mp_gram
  from ..utils import check_array, check_random_state, gen_batches, gen_even_slices
  from ..utils._param_validation import Hidden, Interval, StrOptions, validate_params
  from ..utils.extmath import randomized_svd, row_norms, svd_flip
  from ..utils.parallel import Parallel, delayed
  from ..utils.validation import check_is_fitted
label_desc: Use image node_id 7 for calling a global function with example usage: _check_warn_deprecated(param, name, default, additional_message) and returns: param, default