<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_workspace(namespace, name, authorizationDomain="", attributes=None):
 """Create a new FireCloud Workspace. Args: namespace (str):
 project to which workspace belongs name (str):
 Workspace name protected (bool):
 If True, this workspace is protected by dbGaP credentials. This option is only available if your FireCloud account is linked to your NIH account. attributes (dict):
 Workspace attributes as key value pairs Swagger: https://api.firecloud.org/#!/Workspaces/createWorkspace """


    if not attributes:
        attributes = dict()

    body = {
        "namespace": namespace,
        "name": name,
        "attributes": attributes
    }
    if authorizationDomain:
        authDomain = [{"membersGroupName": authorizationDomain}]
    else:
        authDomain = []

    body["authorizationDomain"] = authDomain

    return __post("workspaces", json=body)