def load_sample_images():
    module_path = os.path.join(os.path.dirname(__file__), "images")
    with open(os.path.join(module_path, 'README.txt')) as f:
        descr = f.read()
    filenames = [os.path.join(module_path, filename)
                 for filename in os.listdir(module_path)
                 if filename.endswith(".jpg")]
    # Load image data for each image in the source folder.
    images = [np.array(Image.open(filename, 'r')) for filename in filenames]

    return Bunch(images=images,
                 filenames=filenames,
                 DESCR=descr)
Test that the callable returned from as_view() has proper
dataset/ETHPy150Open sklearn-theano/sklearn-theano/sklearn_theano/datasets/base.py/load_sample_images--crossover with--dataset/ETHPy150Open django/django/tests/generic_views/test_base.py/ViewTest.test_class_attributes