code: def data_paths(use_full_coco):
      if use_full_coco:
          coco = "/data/coco/coco-2017/coco2017/"
          train = os.path.join(coco, "train2017")
          train_annotations = os.path.join(
              coco, "annotations/instances_train2017.json"
          )
  
          val = os.path.join(coco, "val2017")
          val_annotations = os.path.join(
              coco, "annotations/instances_val2017.json"
          )
          dataset = [(train, train_annotations), (val, val_annotations)]
      else:
          train = os.path.join(test_data_root, "db", "coco", "images")
          train_annotations = os.path.join(
              test_data_root, "db", "coco", "instances.json"
          )
          dataset = [(train, train_annotations)]
  
      return dataset
  
imports: import argparse
  import os
  from math import ceil, sqrt
  import numpy
  import nvidia.dali.ops
  import nvidia.dali.types
  from nvidia.dali.pipeline import Pipeline
  from test_utils import get_dali_extra_path
  from test_utils import to_array
label_desc: Use image node_id 5 for calling a global function with example usage: data_paths(use_full_coco) and returns: dataset