def METHOD_NAME(self):
    kastore_lib = {"version": ".".join(map(str, _tskit.get_kastore_version()))}
    env = provenance.get_environment()
    assert {"kastore": kastore_lib, "tskit": {"version": tskit.__version__}} == env[
        "libraries"
    ]
    env = provenance.get_environment(include_tskit=False)
    assert {"kastore": kastore_lib} == env["libraries"]
    extra_libs = {"abc": [], "xyz": {"one": 1}}
    env = provenance.get_environment(include_tskit=False, extra_libs=extra_libs)
    libs = {"kastore": kastore_lib}
    libs.update(extra_libs)
    assert libs == env["libraries"]