code: def get_data() -> dict[str, Any]:
      """
      returns a dict of various user environment data
      """
      env: dict[str, Any] = {}
      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"])
      env["conda-env"] = subs(["conda", "env", "export"])
      return env
  
file_path: catboost/contrib/python/jupyter-core/py3/jupyter_core/troubleshoot.py
imports: from __future__ import annotations
  import os
  import platform
  import subprocess
  import sys
  from typing import Any, Optional, Union
label_desc: Use image node_id 2 for calling a global function with example usage: get_data() and returns: env