code: def list_user_workspaces(
      client: httpx.Client, user_id: UUID
  ) -> Response[
      Union[List[WorkspaceModel], ErrorMessage, HTTPValidationError]
  ]:
      """Sends a GET request to `/api/v1/users/{user_id}/workspaces` endpoint to get the
      list of workspaces the user has access to.
  
      Args:
          client: the authenticated Argilla client to be used to send the request to the API.
          user_id: the id of the user to get the workspaces from.
  
      Returns:
          A `Response` object containing a `parsed` attribute with the parsed response if
          the request was successful, which is a list of `WorkspaceModel`.
      """
      url = f"/api/v1/users/{user_id}/workspaces"
  
      response = client.get(url=url)
  
      if response.status_code == 200:
          response_obj = Response.from_httpx_response(response)
          response_obj.parsed = [
              WorkspaceModel(**workspace)
              for workspace in response.json()["items"]
          ]
          return response_obj
      return handle_response_error(response)
  
imports: from typing import List, Union
  from uuid import UUID
  import httpx
  from argilla.client.sdk.commons.errors_handler import handle_response_error
  from argilla.client.sdk.commons.models import ErrorMessage, HTTPValidationError, Response
  from argilla.client.sdk.v1.workspaces.models import WorkspaceModel
label_desc: Use image node_id 1 for calling a global function with example usage: list_user_workspaces(client, user_id) and returns: handle_response_error, response_obj