def METHOD_NAME(cph_test_file: Path, tmp_path: Path):
    (tmp_path / "mm").mkdir(parents=True)
    shutil.copy(cph_test_file, tmp_path / "mm")
    mamba_exe = get_umamba()
    out = tmp_path / "mm" / "out"
    subprocess.call(
        [
            mamba_exe,
            "package",
            "extract",
            str(tmp_path / "mm" / cph_test_file.name),
            str(out),
        ]
    )
    subprocess.call(
        [
            mamba_exe,
            "package",
            "compress",
            str(out),
            str(tmp_path / "mm" / "out.tar.bz2"),
        ]
    )
    compare_two_tarfiles(
        tarfile.open(cph_test_file), tarfile.open(tmp_path / "mm" / "out.tar.bz2")
    )
    fout = tarfile.open(tmp_path / "mm" / "out.tar.bz2")
    names = fout.getnames()
    assert "info/paths.json" in names
    info_files = [f for f in names if f.startswith("info/")]
    # check that info files are at the beginning
    assert names[: len(info_files)] == info_files
    # check that the rest is sorted
    assert_sorted(names[len(info_files) :])
    assert_sorted(names[: len(info_files)])