def METHOD_NAME(tmp_home, tmp_prefix):
    """Explicit export must have dependencies before dependent packages."""
    helpers.install("python=3.10", "pip", "jupyterlab")
    lines = helpers.run_env("export", "--explicit").splitlines()
    indices = {
        "libzlib": 0,
        "python": 0,
        "wheel": 0,
        "pip": 0,
        "jupyterlab": 0,
    }
    for i, l in enumerate(lines):
        for pkg in indices.keys():
            if pkg in l:
                indices[pkg] = i
    assert indices["libzlib"] < indices["python"]
    assert indices["python"] < indices["wheel"]
    assert indices["wheel"] < indices["pip"]
    assert indices["python"] < indices["jupyterlab"]