class_docstr: Datasets records DAO
class_docstr_tok: ["Datasets","records","DAO"]
docstr: Creates a dataset records dao instance
  
  Parameters
  ----------
  es:
      The elasticserach wrapper dependency
docstr_tok: ["Creates","a","dataset","records","dao","instance","Parameters","--","--","--","--","--","es",":","The","elasticserach","wrapper","dependency"]
code: def get_instance(
      cls,
      es: GenericElasticEngineBackend = Depends(
          GenericElasticEngineBackend.get_instance
      ),
  ) -> "DatasetRecordsDAO":
      """
      Creates a dataset records dao instance
  
      Parameters
      ----------
      es:
          The elasticserach wrapper dependency
  
      """
      if not cls._INSTANCE:
          cls._INSTANCE = cls(es)
      return cls._INSTANCE
  
file_path: argilla/src/argilla/server/daos/records.py
imports: import datetime
  from typing import Any, Dict, Iterable, List, Optional, Set, Tuple, Type
  from fastapi import Depends
  from argilla.server.daos.backend import GenericElasticEngineBackend
  from argilla.server.daos.backend.base import ClosedIndexError, IndexNotFoundError
  from argilla.server.daos.backend.generic_elastic import PaginatedSortInfo
  from argilla.server.daos.backend.search.model import BaseRecordsQuery, SortableField
  from argilla.server.daos.models.datasets import DatasetDB
  from argilla.server.daos.models.records import DaoRecordsSearch, DaoRecordsSearchResults, RecordDB
  from argilla.server.errors import ClosedDatasetError, MissingDatasetRecordsError
label_desc: Use image node_id 1 for calling the DatasetRecordsDAO obj's underlying member method code with example usage: obj.get_instance(cls, es) and returns: cls