code: def get_data():
      """
      returns a dict of various user environment data
      """
      env = {}
      env["path"] = os.environ.get("PATH")
      env["sys_path"] = sys.path
      env["sys_exe"] = sys.executable
      env["sys_version"] = sys.version
      env["platform"] = platform.platform()
      # FIXME: which on Windows?
      if sys.platform == "win32":
          env["where"] = subs(["where", "jupyter"])
          env["which"] = None
      else:
          env["which"] = subs(["which", "-a", "jupyter"])
          env["where"] = None
      env["pip"] = subs([sys.executable, "-m", "pip", "list"])
      env["conda"] = subs(["conda", "list"])
      return env
  
imports: import os
  import platform
  import subprocess
  import sys
label_desc: Use image node_id 2 for calling a global function with example usage: get_data() and returns: env