class_docstr: Datasets DAO
class_docstr_tok: ["Datasets","DAO"]
code: def load_settings(
      self, dataset: DatasetDB, as_class: Type[DatasetSettingsDB]
  ) -> Optional[DatasetSettingsDB]:
      doc = self._es.find_dataset(id=dataset.id)
      if doc and "settings" in doc:
          settings = doc["settings"]
          return as_class.parse_obj(settings) if settings else None
  
imports: import json
  from typing import Any, Dict, List, Optional, Type
  from fastapi import Depends
  from argilla.server.daos.backend import BaseDatasetsQuery, GenericElasticEngineBackend
  from argilla.server.daos.models.datasets import BaseDatasetDB, BaseDatasetSettingsDB, DatasetDB, DatasetSettingsDB, EmbeddingsConfig
  from argilla.server.daos.records import DatasetRecordsDAO
  from argilla.server.errors import WrongTaskError
label_desc: Use image node_id 17 for calling the DatasetsDAO obj's underlying member method code with example usage: obj.load_settings(dataset, as_class) and returns: unknown