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 dipy
  
      return dict(
          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__,
          dipy_version=dipy.__version__,
      )
  
imports: import os
  import sys
  import subprocess
  import configparser
label_desc: Use image node_id 2 for calling a global function with example usage: get_pkg_info(pkg_path) and returns: dict