code: def _get_deps_info(deps=None):
      """Overview of the installed version of main dependencies.
  
      Parameters
      ----------
      deps : optional, list of strings with import names
          if None, behaves as deps = ["sktime"]
  
      Returns
      -------
      deps_info: dict
          version information on libraries in `deps`
          keys are import names, values are PEP 440 version strings
          of the import as present in the current python environment
      """
      if deps is None:
          deps = ["sktime"]
  
      def get_version(module):
          return module.__version__
  
      deps_info = {}
  
      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
  
      return deps_info
  
imports: import importlib
  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