class_docstr: Class to run attack submissions.
class_docstr_tok: ["Class","to","run","attack","submissions","."]
docstr: Initializes AttackSubmission.
  
  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","AttackSubmission",".","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 AttackSubmission.
  
      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(AttackSubmission, self).__init__(
          submission_id, submissions, storage_bucket
      )
      if (self.type != TYPE_TARGETED) and (
          self.type != TYPE_NONTARGETED
      ):
          raise WorkerError(
              'Incorrect attack 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 AttackSubmission object from inherited base classes: ExecutableSubmission with example: obj = AttackSubmission(submission_id, submissions, storage_bucket)