def get_image_list(self, name):
        """
        :param name: 'train' or 'val' or 'test'
        :returns list of image filenames
        """
        assert name in ['train', 'val', 'test']
        fname = os.path.join(self.dir, name + '.txt')
        assert os.path.isfile(fname)
        with open(fname) as f:
            ret = []
            for line in f.readlines():
                name, cls = line.strip().split()
                ret.append((name, int(cls)))
            return ret
dataset/ETHPy150Open ppwwyyxx/tensorpack/tensorpack/dataflow/dataset/ilsvrc.py/ILSVRCMeta.get_image_list/original