code: def stop_nni():
      """Stop nni experiment"""
      proc = subprocess.run([sys.prefix + "/bin/nnictl", "stop"])
      if proc.returncode != 0:
          raise RuntimeError(
              "'nnictl stop' failed with code %d" % proc.returncode
          )
      check_stopped()
  
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 6 for calling a global function with example usage: stop_nni() without return types