def METHOD_NAME(self):
    im = self.im
    snow = ps.filters.snow_partitioning(im)
    regions = snow.regions
    values = np.random.rand(regions.max())
    mapped = ps.networks.map_to_regions(regions, values)
    assert mapped.max() < 1
    # Some failures
    values = np.random.rand(regions.max()+2)
    with pytest.raises(Exception):
        mapped = ps.networks.map_to_regions(regions, values)