code: def try_import_xgboost():
      try:
          import xgboost
          from pkg_resources import (
              parse_version,
          )  # pylint: disable=import-outside-toplevel
  
          xgboost_version = parse_version(xgboost.__version__)
          min_version = "1.6"
          assert xgboost_version >= parse_version(
              min_version
          ), f'Currently, we only support "xgboost>={min_version}". Installed version: "xgboost=={xgboost.__version__}".'
      except ImportError:
          raise ImportError(
              "`import xgboost` failed. "
              f"A quick tip is to install via `pip install autogluon.tabular[xgboost]=={__version__}`."
          )
  
file_path: autogluon/common/src/autogluon/common/utils/try_import.py
imports: import logging
  import platform
  import sys
  from types import ModuleType
  from ..version import __version__
label_desc: Use image node_id 5 for calling a global function with example usage: try_import_xgboost() without return types