class_docstr: Stores data in temp buckets, restitute it shuffled.
docstr: Add (key, data) to shuffler.
docstr_tok: ["Add","(","key",",","data",")","to","shuffler","."]
code: def add(self, key, data):
      """Add (key, data) to shuffler."""
      if self._read_only:
          raise AssertionError("add() cannot be called after __iter__.")
      if not isinstance(data, six.binary_type):
          raise AssertionError(
              "Only bytes (not %s) can be stored in Shuffler!"
              % (type(data))
          )
      if self._disable_shuffling:
          hkey = key
      else:
          hkey = self._hasher.hash_key(key)
      self._total_bytes += len(data)
      if self._in_memory:
          self._add_to_mem_buffer(hkey, data)
      else:
          self._add_to_bucket(hkey, 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 6 for calling the Shuffler obj's underlying member method code with example usage: obj.add(key, data) without return types