code: def get_val_dataset(args):
      dboxes = dboxes300_coco()
      val_trans = SSDTransformer(dboxes, args, (300, 300), val=True)
  
      val_annotate = os.path.join(
          args.data, "annotations/instances_val2017.json"
      )
      val_coco_root = os.path.join(args.data, "val2017")
  
      val_coco = COCODetection(val_coco_root, val_annotate, val_trans)
      return val_coco
  
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 6 for calling a global function with example usage: get_val_dataset(args) and returns: val_coco