code: def check_stopped(wait=WAITING_TIME, max_retries=MAX_RETRIES):
      """Checks that there is no NNI experiment active (the URL is not accessible).
      This method should be called after `nnictl stop` for verification.
  
      Args:
          wait (numeric) : time to wait in seconds
          max_retries (int): max number of retries
      """
      i = 0
      while i < max_retries:
          try:
              get_experiment_status(NNI_STATUS_URL)
          except Exception:
              break
          time.sleep(wait)
          i += 1
      if i == max_retries:
          raise TimeoutError("check_stopped() timed out")
  
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 3 for calling a global function with example usage: check_stopped(wait, max_retries) without return types