code: def _work(args, wait=False):
      """Creates a single worker."""
      atm = _get_atm(args)
  
      atm.work(
          datarun_ids=getattr(args, "dataruns", None),
          choose_randomly=False,
          save_files=args.save_files,
          cloud_mode=args.cloud_mode,
          total_time=getattr(args, "total_time", None),
          wait=wait,
      )
  
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 2 for calling a global function with example usage: _work(args, wait) without return types