

def filtersizes(iterator, size='medium'):
    '\n    Filters sizes from the iterator and only returns images that are the\n    specified minimum size.\n\n    By default, it filters out all the small images. To download only\n    originals, pass "original". Valid sizes are:\n        - small\n        - medium\n        - large\n        - original\n    '
    sizes = {
        'small': 0,
        'medium': 1,
        'large': 2,
        'original': 3,
    }
    required = sizes[size]
    for x in iterator:
        if ((x.format in sizes) and (sizes[x.format] >= required)):
            (yield x)

dataset/ETHPy150Open cvondrick/pyvision/vision/flickr.py filtersizes/original