code: def coco_pipe(
      coco_op,
      file_root,
      annotations_file,
      polygon_masks,
      pixelwise_masks,
  ):
      inputs, boxes, labels, *_ = coco_op(
          file_root=file_root,
          annotations_file=annotations_file,
          polygon_masks=polygon_masks,
          pixelwise_masks=pixelwise_masks,
      )
      return inputs, boxes, labels
  
imports: import numpy
  import nvidia.dali.fn
  import os
  import tempfile
  import json
  from nvidia.dali import Pipeline, pipeline_def
  from nose_utils import raises
  from nose2.tools import params
  from test_utils import compare_pipelines, get_dali_extra_path
label_desc: Use image node_id 6 for calling a global function with example usage: coco_pipe(coco_op, file_root, annotations_file, polygon_masks, pixelwise_masks) and returns: inputs,  boxes,  labels