class_docstr: Class which encapsulate logit of the worker.
  
  Main entry point of this class is EvaluationWorker.run_work method which
  performs cleanup of temporary directories, then runs
  EvaluationWorker.run_attacks and EvaluationWorker.run_defenses
class_docstr_tok: ["Class","which","encapsulate","logit","of","the","worker",".","Main","entry","point","of","this","class","is","EvaluationWorker.run_work","method","which","performs","cleanup","of","temporary","directories",",","then","runs","EvaluationWorker.run_attacks","and","EvaluationWorker.run_defenses"]
docstr: Run attacks and defenses
docstr_tok: ["Run","attacks","and","defenses"]
code: def run_work(self):
      """Run attacks and defenses"""
      if os.path.exists(LOCAL_EVAL_ROOT_DIR):
          sudo_remove_dirtree(LOCAL_EVAL_ROOT_DIR)
      self.run_attacks()
      self.run_defenses()
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from builtins import int
  import argparse
  import json
  import logging
  import os
  import random
  import shutil
  import subprocess
  import time
  import uuid
  from six import iteritems
  import eval_lib
  from cleverhans.utils import shell_call
label_desc: Use image node_id 9 for calling the EvaluationWorker obj's underlying member method code with example usage: obj.run_work() without return types