class_docstr: Class which performs validation of the submission.
class_docstr_tok: ["Class","which","performs","validation","of","the","submission","."]
docstr: Initializes instance of SubmissionValidator.
  
  Args:
    temp_dir: temporary working directory
    use_gpu: whether to use GPU
docstr_tok: ["Initializes","instance","of","SubmissionValidator",".","Args",":","temp_dir",":","temporary","working","directory","use_gpu",":","whether","to","use","GPU"]
code: def __init__(self, temp_dir, use_gpu):
      """Initializes instance of SubmissionValidator.
  
      Args:
        temp_dir: temporary working directory
        use_gpu: whether to use GPU
      """
      self._temp_dir = temp_dir
      self._use_gpu = use_gpu
      self._tmp_extracted_dir = os.path.join(
          self._temp_dir, "tmp_extracted"
      )
      self._extracted_submission_dir = os.path.join(
          self._temp_dir, "extracted"
      )
      self._sample_input_dir = os.path.join(self._temp_dir, "input")
      self._sample_output_dir = os.path.join(self._temp_dir, "output")
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from builtins import int
  import csv
  import json
  import logging
  import os
  import re
  import subprocess
  import sys
  import numpy
  from PIL import Image
  from six import iteritems
label_desc: Use image node_id 1 to create a new SubmissionValidator object from inherited base classes: object with example: obj = SubmissionValidator(temp_dir, use_gpu)