code: def get_train_dataloader_from_cache(
      train_cache: caching.ChunkedFilesDataCache,
      task,
      train_batch_size: int,
  ):
      # TODO: Expose buffer_size parameter  (issue #1183)
      dataset = train_cache.get_iterable_dataset(
          buffer_size=10000, shuffle=True
      )
      train_dataloader = torch_utils.DataLoaderWithLength(
          dataset=dataset,
          batch_size=train_batch_size,
          collate_fn=task.collate_fn,
      )
      return train_dataloader
  
file_path: jiant/jiant/shared/runner.py
imports: import os
  from typing import Union, Optional
  import torch
  import torch.nn
  import jiant.shared.caching
  import jiant.utils.python.io
  import jiant.utils.torch_utils
label_desc: Use image node_id 2 for calling a global function with example usage: get_train_dataloader_from_cache(train_cache, task, train_batch_size) and returns: train_dataloader