def METHOD_NAME(loader):
    def __reader__():
        for indx, data in enumerate(loader):
            # must return np.ndarray, not paddle.Tensor
            videos = np.array(data[0])
            yield videos
    return __reader__