docstr: Lists the `FeedbackDataset`s pushed to Argilla.
  
  Note that you may need to `rg.init(...)` with your Argilla credentials before
  calling this function, otherwise, the default http://localhost:6900 will be used,
  which will fail if Argilla is not deployed locally.
  
  Args:
      workspace: the workspace where to list the datasets from. If not provided,
          then the workspace filtering won't be applied. Defaults to `None`.
  
  Returns:
      A list of `RemoteFeedbackDataset` datasets, which are `FeedbackDataset`
      datasets previously pushed to Argilla via `push_to_argilla`.
docstr_tok: ["Lists","the","`","FeedbackDataset","`","s","pushed","to","Argilla",".","Note","that","you","may","need","to","`","rg.init","(","...",")","`","with","your","Argilla","credentials","before","calling","this","function",",","otherwise",",","the","default","http",":","\/\/localhost:6900","will","be","used",",","which","will","fail","if","Argilla","is","not","deployed","locally",".","Args",":","workspace",":","the","workspace","where","to","list","the","datasets","from",".","If","not","provided",",","then","the","workspace","filtering","wo","n't","be","applied",".","Defaults","to","`","None","`",".","Returns",":","A","list","of","`","RemoteFeedbackDataset","`","datasets",",","which","are","`","FeedbackDataset","`","datasets","previously","pushed","to","Argilla","via","`","push_to_argilla","`","."]
code: def list(
      cls: Type["FeedbackDataset"], workspace: Optional[str] = None
  ) -> List[RemoteFeedbackDataset]:
      """Lists the `FeedbackDataset`s pushed to Argilla.
  
      Note that you may need to `rg.init(...)` with your Argilla credentials before
      calling this function, otherwise, the default http://localhost:6900 will be used,
      which will fail if Argilla is not deployed locally.
  
      Args:
          workspace: the workspace where to list the datasets from. If not provided,
              then the workspace filtering won't be applied. Defaults to `None`.
  
      Returns:
          A list of `RemoteFeedbackDataset` datasets, which are `FeedbackDataset`
          datasets previously pushed to Argilla via `push_to_argilla`.
      """
      client: "ArgillaClient" = ArgillaSingleton.get()
      httpx_client: "httpx.Client" = client.http_client.httpx
  
      if workspace is not None:
          workspace = Workspace.from_name(workspace)
  
      try:
          datasets = datasets_api_v1.list_datasets(
              client=httpx_client,
              workspace_id=workspace.id
              if workspace is not None
              else None,
          ).parsed
      except Exception as e:
          raise RuntimeError(
              f"Failed while listing the `FeedbackDataset` datasets in Argilla with exception: {e}"
          ) from e
  
      if len(datasets) == 0:
          return []
      return [
          RemoteFeedbackDataset(
              client=httpx_client,
              id=dataset.id,
              name=dataset.name,
              workspace=workspace
              if workspace is not None
              else Workspace.from_id(dataset.workspace_id),
              created_at=dataset.inserted_at,
              updated_at=dataset.updated_at,
              fields=ArgillaMixin.__get_fields(
                  client=httpx_client, id=dataset.id
              ),
              questions=ArgillaMixin.__get_questions(
                  client=httpx_client, id=dataset.id
              ),
              guidelines=dataset.guidelines or None,
          )
          for dataset in datasets
      ]
  
imports: import logging
  from typing import TYPE_CHECKING, List, Literal, Optional, Type, Union
  from uuid import UUID
  from argilla.client.feedback.dataset.helpers import get_dataset_by_name_and_workspace
  from argilla.client.feedback.dataset.remote.dataset import INCLUDE_ALL_VECTORS_PARAM, RemoteFeedbackDataset
  from argilla.client.feedback.schemas.enums import FieldTypes, MetadataPropertyTypes, QuestionTypes
  from argilla.client.feedback.schemas.fields import TextField
  from argilla.client.feedback.schemas.questions import LabelQuestion, MultiLabelQuestion, RankingQuestion, RatingQuestion, TextQuestion
  from argilla.client.feedback.schemas.remote.fields import RemoteTextField
  from argilla.client.feedback.schemas.remote.metadata import RemoteFloatMetadataProperty, RemoteIntegerMetadataProperty, RemoteTermsMetadataProperty
  from argilla.client.feedback.schemas.remote.questions import RemoteLabelQuestion, RemoteMultiLabelQuestion, RemoteRankingQuestion, RemoteRatingQuestion, RemoteTextQuestion
  from argilla.client.feedback.schemas.types import AllowedMetadataPropertyTypes
  from argilla.client.feedback.schemas.vector_settings import VectorSettings
  from argilla.client.sdk.commons.errors import AlreadyExistsApiError
  from argilla.client.sdk.v1.datasets import api
  from argilla.client.singleton import ArgillaSingleton
  from argilla.client.workspaces import Workspace
label_desc: Use image node_id 14 for calling the ArgillaMixin obj's underlying member method code with example usage: obj.list(cls, workspace) and returns: unknown, list