code: def load_target_class(input_dir):
    
    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}
docs: Loads target classes.