class_docstr: Adapter that handles `tf.data.Dataset`.
code: def should_recreate_iterator(self):
      # If user doesn't supply `steps`, or if they supply `steps` that
      # exactly equals the size of the `Dataset`, create a new iterator
      # each epoch.
      return (
          self._user_steps is None
          or cardinality.cardinality(self._dataset).numpy()
          == self._user_steps
      )
  
file_path: elegy/elegy/data/tf_dataset_adapter.py
imports: from tensorflow.python.data.experimental.ops import cardinality
  from tensorflow.python.data.ops import dataset_ops
  from .data_adapter import DataAdapter
  from .utils import flatten, is_none_or_empty, map_structure
label_desc: Use image node_id 9 for calling the TFDatasetAdapter obj's underlying member method code with example usage: obj.should_recreate_iterator() and returns: unknown