code: def construct_deprecated_wrapper(ag_version) -> Callable:
      """Return Deprecated decorator with ag_version as the local AG version for checking"""
  
      def _decorator(*args, **kwargs):
          return Deprecated(*args, _ag_version=ag_version, **kwargs)
  
      return _decorator
  
file_path: autogluon/common/src/autogluon/common/utils/deprecated_utils.py
imports: import functools
  import inspect
  import warnings
  from typing import Any, Callable, Dict, Optional
  from packaging import version
  from ..version import __version__
label_desc: Use image node_id 5 for calling a global function with example usage: construct_deprecated_wrapper(ag_version) and returns: _decorator, Deprecated