code: def get_image_list(self, name, dir_structure='original'):
          
          assert name in ['train', 'val', 'test']
          assert dir_structure in ['original', 'train']
          add_label_to_fname = (name != 'train' and dir_structure != 'original')
          if add_label_to_fname:
              synset = self.get_synset_1000()
  
          fname = os.path.join(self.dir, name + '.txt')
          assert os.path.isfile(fname), fname
          with open(fname) as f:
              ret = []
              for line in f.readlines():
                  name, cls = line.strip().split()
                  cls = int(cls)
  
                  if add_label_to_fname:
                      name = os.path.join(synset[cls], name)
  
                  ret.append((name.strip(), cls))
          assert len(ret), fname
          return ret
docs: Args:
              name (str): 'train' or 'val' or 'test'
              dir_structure (str): same as in :meth:`ILSVRC12.__init__()`.
          Returns:
              list: list of (image filename, label)