code: def transform_dl(
      dataset,
      build_batch,
      batch_tfms=None,
      build_batch_kwargs: dict = {},
      **dataloader_kwargs,
  ):
      """Creates collate_fn from build_batch (collate function) by decorating it with apply_batch_tfms and unload_records"""
      collate_fn = apply_batch_tfms(
          build_batch, batch_tfms=batch_tfms, **build_batch_kwargs
      )
      collate_fn = unload_records(collate_fn)
      return DataLoader(
          dataset=dataset, collate_fn=collate_fn, **dataloader_kwargs
      )
  
file_path: icevision/icevision/models/utils.py
imports: from icevision.imports import *
  from icevision.utils import *
  from icevision.core import *
  from icevision.data import *
  from icevision.parsers import *
  from icevision.data.dataset import Dataset
label_desc: Use image node_id 4 for calling a global function with example usage: transform_dl(dataset, build_batch, batch_tfms, build_batch_kwargs) and returns: DataLoader