code: def _installed_versions():
      ver = {}
      for package in memberships.keys():
          ver[package] = _installed_version(package)
      return ver
  
file_path: pysal/pysal/base.py
label_desc: Use image node_id 2 for calling a global function with example usage: _installed_versions() and returns: ver