code: def start_nni(
      config_path, wait=WAITING_TIME, max_retries=MAX_RETRIES
  ):
      """Start nni experiment given a configuration yaml file.
  
      Args:
          config_path (str): Configuration yaml file.
          wait (numeric) : time to wait in seconds
          max_retries (int): max number of retries
      """
      nni_env = os.environ.copy()
      nni_env["PATH"] = sys.prefix + "/bin:" + nni_env["PATH"]
      proc = subprocess.run(
          [
              sys.prefix + "/bin/nnictl",
              "create",
              "--config",
              config_path,
          ],
          env=nni_env,
      )
      if proc.returncode != 0:
          raise RuntimeError(
              "'nnictl create' failed with code %d" % proc.returncode
          )
      check_experiment_status(wait=wait, max_retries=max_retries)
  
file_path: recommenders/recommenders/tuning/nni/nni_utils.py
imports: import ast
  import json
  import os
  import requests
  import subprocess
  import sys
  import time
label_desc: Use image node_id 7 for calling a global function with example usage: start_nni(config_path, wait, max_retries) without return types