def METHOD_NAME(tmpdir, endpoint):  # pylint: disable=redefined-outer-name
    """Return a workspace."""
    ws = Workspace(uris.from_fs_path(str(tmpdir)), endpoint)
    ws._config = Config(ws.root_uri, {}, 0, {})
    yield ws
    ws.close()