code: def stop_server(args):
      if is_server_running() == False:
          print("Server not running, do not stop again")
          return
  
      choice = raw_input(
          "Are you sure to stop server container(Y/N): "
      ).lower()
      if choice in ("y", "yes"):
          print("Try to start the server with container")
  
          command = "docker ps |grep 'tobegit3hub/advisor' | awk '{print $1}' | xargs docker stop"
          print("Run the command: {}".format(command))
  
          exit_code = subprocess.call(command, shell=True)
  
          if exit_code != 0:
              print(
                  "Fail to stop server, exit code: {}".format(exit_code)
              )
          else:
              print("Success to stop the server")
  
      else:
          print("Cancel operation")
  
file_path: advisor/advisor_client/advisor_client/commandline/admin_command.py
imports: import argcomplete
  import argparse
  import logging
  import pkg_resources
  import sys
  import subprocess
label_desc: Use image node_id 2 for calling a global function with example usage: stop_server(args) without return types