code: def get_experiment_dir(experiment_url=None, experiment_id=None):
      """get experiment root directory"""
      assert any([experiment_url, experiment_id])
      if experiment_id is None:
          experiment_id = get_experiment_id(experiment_url)
      return os.path.join(
          os.path.expanduser("~"), "nni-experiments", experiment_id
      )
  
imports: import contextlib
  import collections
  import os
  import socket
  import sys
  import subprocess
  import requests
  import time
  import yaml
  import shlex
  import warnings
label_desc: Use image node_id 7 for calling a global function with example usage: get_experiment_dir(experiment_url, experiment_id) and returns: os