def list_workspaces() -> List[WorkspaceModel]:
    """Lists all the available workspaces for the current user.

    Returns:
        A list of `WorkspaceModel` objects, containing the workspace
        attributes: name, id, created_at, and updated_at.
    """
    warnings.warn(
        "`Workspace.list` is recommended over `list_workspaces`, since you can easily"
        " access the workspaces as a list of `Workspace` objects with their attributes"
        " and methods.",
        UserWarning,
        stacklevel=1,
    )
    return ArgillaSingleton.get().list_workspaces()
Lists all the available workspaces for the current user.

    Returns:
        A list of `WorkspaceModel` objects, containing the workspace
        attributes: name, id, created_at, and updated_at.
    
argilla-v1/src/argilla_v1/client/api.py