@staticmethod
    def total_request(assembly):
        req = {}
        for path, obj in assembly.items(recurse=True):
            prefix, _, name = path.rpartition('.')
            if name == 'resources' and isinstance(obj, dict):
                req = ResourceAllocationManager._total_request(req, obj)
        return req
Reads the images in a given folder, resizes images on the fly if size is given.
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/resource.py/ResourceAllocationManager.total_request--crossover with--dataset/ETHPy150Open fatcloud/PyCV-time/opencv-official-samples/2.4.9/facerec_demo.py/read_images