docstr: Manages the (reloading) data adapter before epoch starts.
docstr_tok: ["Manages","the","(","reloading",")","data","adapter","before","epoch","starts","."]
code: def enumerate_epochs(self, use_tqdm=False):
      """Manages the (reloading) data adapter before epoch starts."""
      for epoch in tqdm.tqdm(
          range(self._initial_epoch, self._epochs), disable=not use_tqdm
      ):
          self._adapter.reload()
          yield epoch, iter(self._adapter.get_tf_generator())
          self._adapter.on_epoch_end()
  
      self._adapter.on_complete()
  
file_path: AmpliGraph/ampligraph/datasets/data_adapter.py
imports: import contextlib
  import tqdm
  from tensorflow.python.framework import errors
  from .graph_data_loader import GraphDataLoader, NoBackend
  from .graph_partitioner import AbstractGraphPartitioner
  from .partitioned_data_manager import get_partition_adapter
label_desc: Use image node_id 5 for calling the DataHandler obj's underlying member method code with example usage: obj.enumerate_epochs(use_tqdm) without return types