code: def load_target_class(input_dir):
      """Loads target classes."""
      with tf.gfile.Open(
          os.path.join(input_dir, "target_class.csv")
      ) as f:
          return {
              row[0]: int(row[1])
              for row in csv.reader(f)
              if len(row) >= 2
          }
  
file_path: cleverhans/cleverhans_v3.1.0/examples/nips17_adversarial_competition/dev_toolkit/sample_targeted_attacks/iter_target_class/attack_iter_target_class.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import csv
  import os
  import numpy
  import tensorflow
  from tensorflow.contrib.slim.nets import inception
  from scipy.misc import imread
  from scipy.misc import imsave
label_desc: Use image node_id 1 for calling a global function with example usage: load_target_class(input_dir) and returns: unknown