code: def _get_deps_info():
      """Overview of the installed version of main dependencies
  
      Returns
      -------
      dict:
          version information on relevant Python libraries
      """
      deps = [
          "affine",
          "attrs",
          "certifi",
          "click",
          "cligj",
          "cython",
          "numpy",
          "click-plugins",
          "setuptools",
      ]
  
      def get_version(module):
          try:
              return module.__version__
          except AttributeError:
              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)
              deps_info[modname] = get_version(mod)
          except ImportError:
              deps_info[modname] = None
  
      return deps_info
  
file_path: rasterio/rasterio/_show_versions.py
imports: import importlib
  import os
  import platform
  import sys
label_desc: Use image node_id 3 for calling a global function with example usage: _get_deps_info() and returns: deps_info, module, module