code: def get_pkg_info(pkg_path):
      """Return dict describing the context of this package
  
      Parameters
      ------------
      pkg_path : str
         path containing __init__.py for package
  
      Returns
      ----------
      context : dict
         with named parameters of interest
      """
      src, hsh = pkg_commit_hash(pkg_path)
      import numpy
  
      import nipy
  
      return {
          "pkg_path": pkg_path,
          "commit_source": src,
          "commit_hash": hsh,
          "sys_version": sys.version,
          "sys_executable": sys.executable,
          "sys_platform": sys.platform,
          "np_version": numpy.__version__,
          "nipy_version": nipy.__version__,
      }
  
imports: import configparser
  import os
  import subprocess
  import sys
label_desc: Use image node_id 2 for calling a global function with example usage: get_pkg_info(pkg_path) and returns: dict