code: def clone_workspace(from_namespace, from_workspace, to_namespace, to_workspace,
                      authorizationDomain=""):
      
  
      if authorizationDomain:
          if isinstance(authorizationDomain, string_types):
              authDomain = [{"membersGroupName": authorizationDomain}]
          else:
              authDomain = [{"membersGroupName": authDomain} for authDomain in authorizationDomain]
      else:
          authDomain = []
  
      body = {
          "namespace": to_namespace,
          "name": to_workspace,
          "attributes": dict(),
          "authorizationDomain": authDomain,
      }
  
      uri = "workspaces/{0}/{1}/clone".format(from_namespace, from_workspace)
      return __post(uri, json=body)
docs: Clone a FireCloud workspace.
  
      A clone is a shallow copy of a FireCloud workspace, enabling
      easy sharing of data, such as TCGA data, without duplication.
  
      Args:
          from_namespace (str):  project (namespace) to which source workspace belongs
          from_workspace (str): Source workspace's name
          to_namespace (str):  project to which target workspace belongs
          to_workspace (str): Target workspace's name
          authorizationDomain: (str) required authorization domains
  
      Swagger:
          https://api.firecloud.org/#!/Workspaces/cloneWorkspace