code: def get_train_dali_loader(args, default_boxes, local_seed):
      train_pipe = create_coco_pipeline(
          default_boxes,
          args,
          batch_size=args.batch_size,
          num_threads=args.num_workers,
          device_id=args.local_rank,
          seed=local_seed,
      )
  
      train_loader = DALIGenericIterator(
          train_pipe,
          ["images", "boxes", "labels"],
          reader_name="Reader",
          last_batch_policy=LastBatchPolicy.FILL,
      )
  
      return train_loader
  
file_path: DALI/docs/examples/use_cases/pytorch/single_stage_detector/src/data.py
imports: import os
  import numpy
  import torch
  from torch.utils.data import DataLoader
  from src.utils import dboxes300_coco, COCODetection, SSDTransformer
  from src.coco import COCO
  from src.coco_pipeline import create_coco_pipeline
  from nvidia.dali.plugin.pytorch import DALIGenericIterator, LastBatchPolicy
label_desc: Use image node_id 4 for calling a global function with example usage: get_train_dali_loader(args, default_boxes, local_seed) and returns: train_loader