code: def input(file_root, annotations_file, shard_id, num_threads, device):
      inputs, bboxes, classes = dali.fn.readers.coco(
          file_root=file_root,
          annotations_file=annotations_file,
          ltrb=True,
          shard_id=shard_id,
          num_shards=num_threads,
          ratio=True,
          random_shuffle=True,
      )
      images = dali.fn.decoders.image(
          inputs, device=device, output_type=dali.types.RGB
      )
  
      return images, bboxes, classes
  
imports: import nvidia.dali
label_desc: Use image node_id 1 for calling a global function with example usage: input(file_root, annotations_file, shard_id, num_threads, device) and returns: images,  bboxes,  classes