docstr: Iterates over the `FeedbackRecord`s of the current `FeedbackDataset` in Argilla.
docstr_tok: ["Iterates","over","the","`","FeedbackRecord","`","s","of","the","current","`","FeedbackDataset","`","in","Argilla","."]
code: def __iter__(
      self: "RemoteFeedbackRecords",
  ) -> Iterator["RemoteFeedbackRecord"]:
      """Iterates over the `FeedbackRecord`s of the current `FeedbackDataset` in Argilla."""
      current_batch = 0
      while True:
          batch = self._fetch_records(
              offset=FETCHING_BATCH_SIZE * current_batch,
              limit=FETCHING_BATCH_SIZE,
          )
          if len(batch.items) == 0:
              break
          for record in batch.items:
              yield RemoteFeedbackRecord.from_api(
                  record,
                  question_id_to_name=self._question_id_to_name,
                  client=self._client,
              )
          current_batch += 1
  
          if len(batch.items) < FETCHING_BATCH_SIZE:
              break
  
file_path: argilla/src/argilla/client/feedback/dataset/remote/mixins.py
imports: from typing import TYPE_CHECKING, Iterator, List, Union
  from argilla.client.feedback.constants import FETCHING_BATCH_SIZE
  from argilla.client.feedback.schemas.remote.records import RemoteFeedbackRecord
  from argilla.client.sdk.users.models import UserRole
  from argilla.client.utils import allowed_for_roles
label_desc: Use image node_id 2 for calling the ArgillaRecordsMixin obj's underlying member method code with example usage: obj.__iter__() without return types