def METHOD_NAME():
    old_key = os.environ.get("V3IO_ACCESS_KEY")
    old_user = os.environ.get("V3IO_USERNAME")
    artifact_path = mlrun.mlconf.artifact_path or "./"
    mlrun.set_environment(access_key="xyz", username="joe", artifact_path=artifact_path)
    assert os.environ["V3IO_ACCESS_KEY"] == "xyz"
    assert os.environ["V3IO_USERNAME"] == "joe"
    if old_key:
        os.environ["V3IO_ACCESS_KEY"] = old_key
    else:
        del os.environ["V3IO_ACCESS_KEY"]
    if old_user:
        os.environ["V3IO_USERNAME"] = old_user
    else:
        del os.environ["V3IO_USERNAME"]