code: def _stop(args):
      """Stop the current running process of ATM."""
      pid_path = _get_pid_path(args.pid)
      process = _get_atm_process(pid_path)
  
      if process:
          process.terminate()
  
          for _ in range(args.timeout):
              if process.is_running():
                  time.sleep(1)
              else:
                  break
  
          if process.is_running():
              print(
                  "ATM was not able to stop after {} seconds.".format(
                      args.timeout
                  )
              )
              if args.force:
                  print("Killing it.")
                  process.kill()
  
              else:
                  print("Use --force to kill it.")
  
          else:
              print("ATM stopped correctly.")
  
      else:
          print("ATM is not running.")
  
imports: import argparse
  import logging
  import multiprocessing
  import os
  import time
  import psutil
  from daemon import DaemonContext
  from lockfile.pidlockfile import PIDLockFile
  from atm.api import create_app
  from atm.config import AWSConfig, DatasetConfig, LogConfig, RunConfig, SQLConfig
  from atm.core import ATM
  from atm.data import copy_files, download_demo, get_demos
label_desc: Use image node_id 9 for calling a global function with example usage: _stop(args) without return types