class_docstr: Text2text service
docstr: Scan a dataset records
  
  Parameters
  ----------
  dataset:
      The records dataset
  query:
      If provided, scan will retrieve only records matching
      the provided query filters. Optional
  id_from:
      If provided, read the samples after this record ID
  limit:
      Batch size to scan, only used if `id_from` is specified
docstr_tok: ["Scan","a","dataset","records","Parameters","--","--","--","--","--","dataset",":","The","records","dataset","query",":","If","provided",",","scan","will","retrieve","only","records","matching","the","provided","query","filters",".","Optional","id_from",":","If","provided",",","read","the","samples","after","this","record","ID","limit",":","Batch","size","to","scan",",","only","used","if","`","id_from","`","is","specified"]
code: def read_dataset(
      self,
      dataset: ServiceDataset,
      query: Optional[ServiceText2TextQuery] = None,
      id_from: Optional[str] = None,
      limit: int = 1000,
  ) -> Iterable[ServiceText2TextRecord]:
      """
      Scan a dataset records
  
      Parameters
      ----------
      dataset:
          The records dataset
      query:
          If provided, scan will retrieve only records matching
          the provided query filters. Optional
      id_from:
          If provided, read the samples after this record ID
      limit:
          Batch size to scan, only used if `id_from` is specified
  
      """
      yield from self.__search__.scan_records(
          dataset,
          query=query,
          record_type=ServiceText2TextRecord,
          id_from=id_from,
          limit=limit,
      )
  
file_path: argilla/src/argilla/server/services/tasks/text2text/service.py
imports: from typing import Iterable, List, Optional
  from fastapi import Depends
  from argilla.server.commons.config import TasksFactory
  from argilla.server.services.datasets import ServiceDataset
  from argilla.server.services.search.model import ServiceSearchResults, ServiceSortableField, ServiceSortConfig
  from argilla.server.services.search.service import SearchRecordsService
  from argilla.server.services.storage.service import RecordsStorageService
  from argilla.server.services.tasks.commons import BulkResponse
  from argilla.server.services.tasks.text2text.models import ServiceText2TextQuery, ServiceText2TextRecord
label_desc: Use image node_id 4 for calling the Text2TextService obj's underlying member method code with example usage: obj.read_dataset(dataset, query, id_from, limit) without return types