code: def _get_pid_path(pid):
      """Returns abspath of the pid file which is stored on the cwd."""
      pid_path = pid
  
      if not os.path.isabs(pid_path):
          pid_path = os.path.join(os.getcwd(), pid_path)
  
      return pid_path
  
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 4 for calling a global function with example usage: _get_pid_path(pid) and returns: pid_path