def check_workspace(workspace_to_check: str) -> Workspace:
    """
    Helper function to check if the workspace exists. If it does not exist, it creates a new one.

    Args:
        workspace_to_check: a workspace string name

    Returns:
        The Workspace object corresponding to the input.
    """
    try:
        workspace = Workspace.from_name(workspace_to_check)
    except:
        workspace = Workspace.create(workspace_to_check)
    return workspace

    Helper function to check if the workspace exists. If it does not exist, it creates a new one.

    Args:
        workspace_to_check: a workspace string name

    Returns:
        The Workspace object corresponding to the input.
    
argilla-v1/src/argilla_v1/client/feedback/utils/assignment.py