def __init__(self, lst, shuffle=True):
        """
        Args:
            lst (list): input list. Each element is a datapoint.
            shuffle (bool): shuffle data.
        """
        super(DataFromList, self).__init__()
        self.lst = lst
        self.shuffle = shuffle

        Args:
            lst (list): input list. Each element is a datapoint.
            shuffle (bool): shuffle data.
        
tensorpack/dataflow/raw.py