class_docstr: Base class which is used to run submissions.
class_docstr_tok: ["Base","class","which","is","used","to","run","submissions","."]
docstr: Initializes ExecutableSubmission.
  
  Args:
    submission_id: ID of the submissions
    submissions: instance of CompetitionSubmissions with all submissions
    storage_bucket: storage bucket where all submissions are stored
  
  Raises:
    WorkerError: if submission was not found
docstr_tok: ["Initializes","ExecutableSubmission",".","Args",":","submission_id",":","ID","of","the","submissions","submissions",":","instance","of","CompetitionSubmissions","with","all","submissions","storage_bucket",":","storage","bucket","where","all","submissions","are","stored","Raises",":","WorkerError",":","if","submission","was","not","found"]
code: def __init__(self, submission_id, submissions, storage_bucket):
      """Initializes ExecutableSubmission.
  
      Args:
        submission_id: ID of the submissions
        submissions: instance of CompetitionSubmissions with all submissions
        storage_bucket: storage bucket where all submissions are stored
  
      Raises:
        WorkerError: if submission was not found
      """
      self.submission_id = submission_id
      self.storage_bucket = storage_bucket
      self.type = None
      self.submission = None
      if submission_id in submissions.attacks:
          self.type = TYPE_NONTARGETED
          self.submission = submissions.attacks[submission_id]
      elif submission_id in submissions.targeted_attacks:
          self.type = TYPE_TARGETED
          self.submission = submissions.targeted_attacks[submission_id]
      elif submission_id in submissions.defenses:
          self.type = TYPE_DEFENSE
          self.submission = submissions.defenses[submission_id]
      else:
          raise WorkerError(
              'Submission with ID "{0}" not found'.format(submission_id)
          )
      self.submission_dir = None
      self.extracted_submission_dir = None
  
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 ExecutableSubmission object from inherited base classes: object with example: obj = ExecutableSubmission(submission_id, submissions, storage_bucket)