class_docstr: Dataset client api class
class_docstr_tok: ["Dataset","client","api","class"]
docstr: Configures dataset settings. If dataset does not exist, a new one will be created.
  Pass only settings that want to configure
  
  Args:
      name: The dataset name
      workspace: The dataset workspace
      settings: The dataset settings
docstr_tok: ["Configures","dataset","settings",".","If","dataset","does","not","exist",",","a","new","one","will","be","created",".","Pass","only","settings","that","want","to","configure","Args",":","name",":","The","dataset","name","workspace",":","The","dataset","workspace","settings",":","The","dataset","settings"]
code: def configure(self, name: str, workspace: str, settings: Settings):
      """
      Configures dataset settings. If dataset does not exist, a new one will be created.
      Pass only settings that want to configure
  
      Args:
          name: The dataset name
          workspace: The dataset workspace
          settings: The dataset settings
      """
      try:
          task = (
              TaskType.text_classification
              if isinstance(settings, TextClassificationSettings)
              else TaskType.token_classification
          )
          ds = self.create(name=name, task=task, workspace=workspace)
      except AlreadyExistsApiError:
          ds = self.find_by_name(name, workspace=workspace)
      self._save_settings(dataset=ds, settings=settings)
  
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 3 for calling the Datasets obj's underlying member method code with example usage: obj.configure(name, workspace, settings) without return types