code: def list_datasets(
      client: httpx.Client,
      workspace_id: Optional[UUID] = None,
  ) -> Response[
      Union[
          list,
          List[FeedbackDatasetModel],
          ErrorMessage,
          HTTPValidationError,
      ]
  ]:
      """Sends a GET request to `/api/v1/me/datasets` endpoint to retrieve a list of
      `FeedbackTask` datasets filtered by `workspace_id` if applicable.
  
      Args:
          client: the authenticated Argilla client to be used to send the request to the API.
          workspace_id: the id of the workspace to filter the datasets by. Note that the user
              should either be owner or have access to the workspace. Defaults to None.
  
      Returns:
          A `Response` object containing a `parsed` attribute with the parsed response if the
          request was successful, which is a list of `FeedbackDatasetModel` if any, otherwise
          it will contain an empty list.
      """
      url = "/api/v1/me/datasets"
  
      params = {}
      if workspace_id is not None:
          params["workspace_id"] = str(workspace_id)
  
      response = client.get(url=url, params=params)
  
      if response.status_code == 200:
          response_obj = Response.from_httpx_response(response)
          response_obj.parsed = [
              FeedbackDatasetModel(**dataset)
              for dataset in response.json()["items"]
          ]
          return response_obj
      return handle_response_error(response)
  
imports: import warnings
  from typing import Any, Dict, List, Optional, 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.datasets.models import FeedbackDatasetModel, FeedbackFieldModel, FeedbackListVectorSettingsModel, FeedbackMetadataPropertyModel, FeedbackMetricsModel, FeedbackQuestionModel, FeedbackRecordsModel, FeedbackRecordsSearchModel, FeedbackRecordsSearchVectorQuery, FeedbackResponseStatusFilter, FeedbackVectorSettingsModel
label_desc: Use image node_id 5 for calling a global function with example usage: list_datasets(client, workspace_id) and returns: handle_response_error, response_obj