code: def stop_container(name):
      """Stop docker container"""
      stop_cmds = ["docker", "container", "stop", name]
      check_call(stop_cmds)
      rm_cmds = ["docker", "container", "rm", name]
      check_call(rm_cmds)
  
file_path: nni/test/training_service/nnitest/remote_docker.py
imports: import os
  import argparse
  from subprocess import check_output, check_call
  import socket
  import random
  import re
label_desc: Use image node_id 5 for calling a global function with example usage: stop_container(name) without return types