def METHOD_NAME(hydds, flwdir):
    hydds["strord"] = xr.DataArray(
        data=flwdir.stream_order(), dims=hydds.raster.dims, coords=hydds.raster.coords
    )
    da_stream = flw.stream_map(hydds, uparea=10, strord=3)
    da_stream1 = np.logical_and(hydds["uparea"] >= 10, hydds["strord"] >= 3)
    assert np.all(da_stream == da_stream1)
    with pytest.raises(ValueError, match="Stream criteria resulted in invalid mask."):
        flw.stream_map(hydds, uparea=hydds["uparea"].max() + 1)