code: def deploy():
      code_dir = "/home/ubuntu/atm"
      WORKERS_PER_MACHINE = int(
          config.get(Config.AWS, Config.AWS_NUM_WORKERS_PER_INSTACNCES)
      )
      with settings(warn_only=True):
          if run("test -d %s" % code_dir).failed:
              run(
                  "git clone https://%s:%s@%s %s"
                  % (
                      config.get(Config.GIT, Config.GIT_USER),
                      config.get(Config.GIT, Config.GIT_PASS),
                      config.get(Config.GIT, Config.GIT_REPO),
                      code_dir,
                  )
              )
              with cd(code_dir):
                  run("git pull")
                  run("mkdir config")
                  put("config/atm.cnf", "config")
                  for i in range(1, WORKERS_PER_MACHINE + 1, 1):
                      run(
                          "screen -dm -S worker%d python worker.py; sleep 2"
                          % (i,)
                      )
          else:
              with cd(code_dir):
                  run("git pull")
                  for i in range(1, WORKERS_PER_MACHINE + 1, 1):
                      if not run('screen -ls | grep "worker%d";' % i):
                          run(
                              "screen -dm -S worker%d python worker.py; sleep 2"
                              % (i,)
                          )
  
file_path: ATM/fabfile.py
imports: from __future__ import print_function
  from fabric.api import *
  from fabric.colors import green, yellow
  import boto.ec2
  import time
  from atm.config import AWSConfig
label_desc: Use image node_id 4 for calling a global function with example usage: deploy() without return types