code: def load_defense_output(filename):
      """Loads output of defense from given file."""
      result = {}
      with open(filename) as f:
          for row in csv.reader(f):
              try:
                  image_filename = row[0]
                  if not image_filename.endswith(".png"):
                      image_filename += ".png"
                  label = int(row[1])
              except (IndexError, ValueError):
                  continue
              result[image_filename] = label
      return result
  
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 4 for calling a global function with example usage: load_defense_output(filename) and returns: result