class_docstr: Helper class which performs validation of all submissions.
docstr: Saves mapping from submission IDs to original filenames.
  
  This mapping is saved as CSV file into target directory.
docstr_tok: ["Saves","mapping","from","submission","IDs","to","original","filenames",".","This","mapping","is","saved","as","CSV","file","into","target","directory","."]
code: def save_id_to_path_mapping(self):
      """Saves mapping from submission IDs to original filenames.
  
      This mapping is saved as CSV file into target directory.
      """
      if not self.id_to_path_mapping:
          return
      with open(self.local_id_to_path_mapping_file, "w") as f:
          writer = csv.writer(f)
          writer.writerow(["id", "path"])
          for k, v in sorted(iteritems(self.id_to_path_mapping)):
              writer.writerow([k, v])
      cmd = [
          "gsutil",
          "cp",
          self.local_id_to_path_mapping_file,
          os.path.join(self.target_dir, "id_to_path_mapping.csv"),
      ]
      if subprocess.call(cmd) != 0:
          logging.error(
              "Can't copy id_to_path_mapping.csv to target directory"
          )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import argparse
  import csv
  import logging
  import os
  import random
  import shutil
  import subprocess
  import tempfile
  from six import iteritems
  import validate_submission_lib
label_desc: Use image node_id 5 for calling the SubmissionValidator obj's underlying member method code with example usage: obj.save_id_to_path_mapping() without return types