code: def _get_experiment_ports():
      experiment_list_path = Path.home() / "nni-experiments/.experiment"
      if not experiment_list_path.exists():
          return None
      experiments = json.load(open(experiment_list_path))
      return [
          exp["port"]
          for exp in experiments.values()
          if exp["status"] != "STOPPED"
      ]
  
file_path: nni/nni/tools/jupyter_extension/proxy.py
imports: import json
  from pathlib import Path
  import requests
  from tornado.web import RequestHandler
label_desc: Use image node_id 2 for calling a global function with example usage: _get_experiment_ports() and returns: unknown, None