code: def _get_deps_info(deps=_pmdarima_deps):
      """Overview of the installed version of main dependencies
  
      Returns
      -------
      deps_info: dict
          version information on relevant Python libraries
      """
  
      def get_version(module):
          return module.__version__
  
      deps_info = {}
  
      # TODO: We can get rid of this when we deprecate 3.7
      if sys.version_info.minor <= 7:
          import importlib
  
          for modname in deps:
              try:
                  if modname in sys.modules:
                      mod = sys.modules[modname]
                  else:
                      mod = importlib.import_module(modname)
                  ver = get_version(mod)
                  deps_info[modname] = ver
              except ImportError:
                  deps_info[modname] = None
  
      else:
          from importlib.metadata import PackageNotFoundError, version
  
          for modname in deps:
              try:
                  deps_info[modname] = version(
                      _install_mapping.get(modname, modname)
                  )  # noqa:E501
              except PackageNotFoundError:
                  deps_info[modname] = None
  
      return deps_info
  
imports: import platform
  import sys
label_desc: Use image node_id 2 for calling a global function with example usage: _get_deps_info(deps) and returns: deps_info, module