code: def define_graph(self):
      inputs = self.input()
      input_images = inputs["image/encoded"]
  
      image_gpu = self.decode_gpu(input_images)
      labels = self.cast(inputs["image/object/class/label"])
      encoded_boxes, encoded_labels = self.box_encoder(
          inputs["image/object/bbox"], labels
      )
  
      return (
          image_gpu,
          inputs["image/object/bbox"],
          labels,
          encoded_boxes,
          encoded_labels,
      )
  
file_path: DALI/dali/test/python/test_coco_tfrecord.py
imports: import argparse
  import os
  import nvidia.dali.ops
  import nvidia.dali.types
  from nvidia.dali.pipeline import Pipeline
  import nvidia.dali.tfrecord
  from test_detection_pipeline import coco_anchors
  from test_utils import compare_pipelines, get_dali_extra_path
label_desc: Use image node_id 2 for calling the TFRecordDetectionPipeline obj's underlying member method code with example usage: obj.define_graph() and returns: image_gpu,  inputs,  labels,  encoded_boxes,  encoded_labels