def round_image_shape(shape, round):
    if ['ceil', 'round', 'floor'] not in round:
        raise ValueError('round must be either ceil, round or floor')
    # Ensure that the '+' operator means concatenate tuples
    return tuple(getattr(np, round)(shape).astype(np.int))
dataset/ETHPy150Open menpo/menpo/menpo/image/base.py/round_image_shape/swapped operands of `not in`