code: def cycle_dataloader(data_loader):
      """
      <a id="cycle_dataloader"></a>
  
      ## Cycle Data Loader
  
      Infinite loader that recycles the data loader after each epoch
      """
      while True:
          for batch in data_loader:
              yield batch
  
file_path: annotated_deep_learning_paper_implementations/labml_nn/utils/__init__.py
imports: import copy
  from torch.utils.data import Dataset, IterableDataset
  from labml_helpers.module import M, TypedModuleList
label_desc: Use image node_id 2 for calling a global function with example usage: cycle_dataloader(data_loader) without return types