code: def read_image_label(file):
      print("[dataset] read " + file)
      data = dict()
      with open(file, "r") as f:
          for line in f:
              tmp = line.split(" ")
              name = tmp[0]
              label = int(tmp[-1])
              data[name] = label
              # data.append([name, label])
              # print('%s  %d' % (name, label))
      return data
  
imports: from __future__ import print_function, division, absolute_import
  import csv
  import os
  import os.path
  import tarfile
  from six.moves.urllib.parse import urlparse
  import numpy
  import torch
  import torch.utils.data
  from PIL import Image
  from .None import utils
label_desc: Use image node_id 1 for calling a global function with example usage: read_image_label(file) and returns: data