def METHOD_NAME(yaml_env: Path):
    res = helpers.umamba_repoquery(
        "whoneeds", "-c", "conda-forge", "xtensor=0.24.5", "--json"
    )
    assert res["query"]["query"] == "xtensor =0.24.5*"
    assert res["query"]["type"] == "whoneeds"
    pkgs = res["result"]["pkgs"]
    assert all("conda-forge" in x["channel"] for x in pkgs)
    assert any(x["name"] == "cppcolormap" for x in pkgs)
    assert any(x["name"] == "pyxtensor" for x in pkgs)
    assert any(x["name"] == "qpot" for x in pkgs)