def test_id(request):
    """Generates a unique identifier for a test.

    Used for marking up logs and workspaces used by a test
    so the generated artifacts can be isolated from other tests

    Args:
        request (pytest.fixture.SubRequest):
            metadata describing the currently running tests

    Returns:
        str:
            unique ID for the specified test
    """
    mod_name = request.module.__name__
    test_prefix = ".".join(mod_name.split(".")[1:])
    return f"{test_prefix}.{request.node.name}"