def __init__(self, dir, name, meta_dir=None, shuffle=True):
        """
        name: 'train' or 'val' or 'test'
        """
        assert name in ['train', 'test', 'val']
        self.dir = dir
        self.name = name
        self.shuffle = shuffle
        self.meta = ILSVRCMeta(meta_dir)
        self.imglist = self.meta.get_image_list(name)
        self.rng = get_rng(self)
dataset/ETHPy150Open ppwwyyxx/tensorpack/tensorpack/dataflow/dataset/ilsvrc.py/ILSVRC12.__init__/original