class_docstr: Dataset client api class
class_docstr_tok: ["Dataset","client","api","class"]
docstr: Load the dataset settings
  
  Args:
      name: The dataset name
      workspace: The workspace name where the dataset belongs to
  
  Returns:
      Settings defined for the dataset
docstr_tok: ["Load","the","dataset","settings","Args",":","name",":","The","dataset","name","workspace",":","The","workspace","name","where","the","dataset","belongs","to","Returns",":","Settings","defined","for","the","dataset"]
code: def load_settings(
      self, name: str, workspace: Optional[str] = None
  ) -> Optional[Settings]:
      """
      Load the dataset settings
  
      Args:
          name: The dataset name
          workspace: The workspace name where the dataset belongs to
  
      Returns:
          Settings defined for the dataset
      """
      dataset = self.find_by_name(name, workspace=workspace)
      try:
          with api_compatibility(self, min_version="1.0"):
              params = (
                  {"workspace": dataset.workspace}
                  if dataset.workspace
                  else {}
              )
              response = self.http_client.get(
                  f"{self._API_PREFIX}/{dataset.name}/{dataset.task.value}/settings",
                  params=params,
              )
              return __TASK_TO_SETTINGS__.get(dataset.task).from_dict(
                  response
              )
      except NotFoundApiError:
          return None
      except Exception:
          return None
  
imports: import math
  import warnings
  from dataclasses import dataclass
  from datetime import datetime
  from typing import Any, Dict, Iterable, List, Optional, Set, Tuple, Union
  from argilla.client.apis import AbstractApi, api_compatibility
  from argilla.client.sdk.commons.errors import AlreadyExistsApiError, ApiCompatibilityError, ForbiddenApiError, NotFoundApiError
  from argilla.client.sdk.datasets.api import get_dataset
  from argilla.client.sdk.datasets.models import TaskType
  from argilla.pydantic_v1 import BaseModel, Field
label_desc: Use image node_id 8 for calling the Datasets obj's underlying member method code with example usage: obj.load_settings(name, workspace) and returns: __TASK_TO_SETTINGS__, None, None