class_docstr: Stores data in temp buckets, restitute it shuffled.
code: def __iter__(self) -> Iterator[type_utils.KeySerializedExample]:
      self._read_only = True
      previous_hkey = None
      previous_data = None
      iterator = (
          self._iter_mem() if self._in_memory else self._iter_buckets()
      )
      for hkey, data in iterator:
          if hkey == previous_hkey:
              raise DuplicatedKeysError(data, previous_data)
          previous_hkey = hkey
          yield hkey, data
          previous_data = data
  
imports: import math
  import os
  import struct
  from typing import Iterator, List, Optional
  import uuid
  from absl import logging
  import six
  from tensorflow_datasets.core import hashing
  from tensorflow_datasets.core.utils import file_utils
  from tensorflow_datasets.core.utils import type_utils
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
label_desc: Use image node_id 7 for calling the Shuffler obj's underlying member method code with example usage: obj.__iter__() without return types