code: def main() -> None:
      """
      print out useful info
      """
      # pylint: disable=superfluous-parens
      # args = get_args()
      if "_ARGCOMPLETE" in os.environ:
          # No arguments to complete, the script can be slow to run to completion,
          # so in case someone tries to complete jupyter troubleshoot just exit early
          return
  
      environment_data = get_data()
  
      print("$PATH:")
      for directory in environment_data["path"].split(os.pathsep):
          print(f"\t{directory}")
  
      print("\nsys.path:")
      for directory in environment_data["sys_path"]:
          print(f"\t{directory}")
  
      print("\nsys.executable:")
      print(f'\t{environment_data["sys_exe"]}')
  
      print("\nsys.version:")
      if "\n" in environment_data["sys_version"]:
          for data in environment_data["sys_version"].split("\n"):
              print(f"\t{data}")
      else:
          print(f'\t{environment_data["sys_version"]}')
  
      print("\nplatform.platform():")
      print(f'\t{environment_data["platform"]}')
  
      if environment_data["which"]:
          print("\nwhich -a jupyter:")
          for line in environment_data["which"].split("\n"):
              print(f"\t{line}")
  
      if environment_data["where"]:
          print("\nwhere jupyter:")
          for line in environment_data["where"].split("\n"):
              print(f"\t{line}")
  
      if environment_data["pip"]:
          print("\npip list:")
          for package in environment_data["pip"].split("\n"):
              print(f"\t{package}")
  
      if environment_data["conda"]:
          print("\nconda list:")
          for package in environment_data["conda"].split("\n"):
              print(f"\t{package}")
  
      if environment_data["conda-env"]:
          print("\nconda env:")
          for package in environment_data["conda-env"].split("\n"):
              print(f"\t{package}")
  
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 3 for calling a global function with example usage: main() without return types