code: def get_installed_packages():
      import pkg_resources
  
      packages = {i.key: i.version for i in pkg_resources.working_set}
  
      return packages
  
imports: import logging
  import subprocess
label_desc: Use image node_id 1 for calling a global function with example usage: get_installed_packages() and returns: packages