code: def _get_autogluon_versions():
      """Retrieve version of all autogluon subpackages and its dependencies"""
      versions = dict()
      for pkg in list(
          pkgutil.iter_modules(
              autogluon.__path__, autogluon.__name__ + "."
          )
      ):
          # The following packages will be recognized as a submodule by pkgutil -exclude them.
          if pkg.name in [
              "autogluon.version",
              "autogluon.setup",
              "autogluon._internal_",
          ]:
              continue
          try:
              versions[pkg.name] = version(pkg.name)
              versions.update(_get_dependency_versions(pkg.name))
          except ImportError:
              versions[pkg.name] = None
      return versions
  
file_path: autogluon/core/src/autogluon/core/utils/version_utils.py
imports: import pkgutil
  import platform
  import re
  import sys
  from datetime import datetime
  from importlib.metadata import distribution, version
  import autogluon
  from autogluon.common.utils.nvutil import cudaInit, cudaSystemGetNVMLVersion
  from autogluon.common.utils.resource_utils import ResourceManager
label_desc: Use image node_id 1 for calling a global function with example usage: _get_autogluon_versions() and returns: versions