code: def get_train_loader(args, dboxes):
      args.train_annotate = os.path.join(
          args.data, "annotations/instances_train2017.json"
      )
      args.train_coco_root = os.path.join(args.data, "train2017")
  
      local_seed = set_seeds(args)
  
      if args.data_pipeline == "no_dali":
          return get_train_pytorch_loader(
              args, args.num_workers, dboxes
          )
      elif args.data_pipeline == "dali":
          return get_train_dali_loader(args, dboxes, local_seed)
  
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 5 for calling a global function with example usage: get_train_loader(args, dboxes) and returns: get_train_pytorch_loader, get_train_dali_loader