class_docstr: Helper class to run one defense submission.
class_docstr_tok: ["Helper","class","to","run","one","defense","submission","."]
docstr: Initializes DefenseSubmission.
  
  Args:
    submission_id: ID of the submission
    submissions: instance of CompetitionSubmissions with all submissions
    storage_bucket: storage bucket where all submissions are stored
  
  Raises:
    WorkerError: if submission has incorrect type
docstr_tok: ["Initializes","DefenseSubmission",".","Args",":","submission_id",":","ID","of","the","submission","submissions",":","instance","of","CompetitionSubmissions","with","all","submissions","storage_bucket",":","storage","bucket","where","all","submissions","are","stored","Raises",":","WorkerError",":","if","submission","has","incorrect","type"]
code: def __init__(self, submission_id, submissions, storage_bucket):
      """Initializes DefenseSubmission.
  
      Args:
        submission_id: ID of the submission
        submissions: instance of CompetitionSubmissions with all submissions
        storage_bucket: storage bucket where all submissions are stored
  
      Raises:
        WorkerError: if submission has incorrect type
      """
      super(DefenseSubmission, self).__init__(
          submission_id, submissions, storage_bucket
      )
      if self.type != TYPE_DEFENSE:
          raise WorkerError(
              'Incorrect defense type for submission "{0}"'.format(
                  submission_id
              )
          )
  
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 1 to create a new DefenseSubmission object from inherited base classes: ExecutableSubmission with example: obj = DefenseSubmission(submission_id, submissions, storage_bucket)