code: def define_graph(self):
      # Random variables
      saturation = self.saturation_rng()
      contrast = self.contrast_rng()
      brightness = self.brighness_rng()
      hue = self.hue_rng()
  
      inputs, boxes, labels = self.input(name="Reader")
  
      image = self.decode_cpu(inputs)
      image_ssd_crop, boxes_ssd_crop, labels_ssd_crop = self.ssd_crop(
          image, boxes, labels
      )
  
      (
          crop_begin,
          crop_size,
          boxes_random_crop,
          labels_random_crop,
      ) = self.random_bbox_crop(boxes, labels)
      image_decode_crop = self.decode_crop(
          inputs, crop_begin, crop_size
      )
  
      image_slice_cpu = self.slice_cpu(image, crop_begin, crop_size)
      image_slice_gpu = self.slice_gpu(
          image.gpu(), crop_begin, crop_size
      )
  
      image_resized_cpu = self.resize_cpu(image_ssd_crop)
      image_resized_gpu = self.resize_gpu(image_ssd_crop.gpu())
  
      image_normalized_cpu = self.normalize_cpu(image_resized_cpu)
      image_normalized_gpu = self.normalize_gpu(image_resized_cpu.gpu())
  
      image_twisted_cpu = self.hsv_cpu(
          image_ssd_crop, saturation=saturation, hue=hue
      )
      image_twisted_cpu = self.bc_cpu(
          image_twisted_cpu, brightness=brightness, contrast=contrast
      )
      image_twisted_gpu = self.hsv_gpu(
          image_ssd_crop.gpu(), saturation=saturation, hue=hue
      )
      image_twisted_gpu = self.bc_gpu(
          image_twisted_gpu, brightness=brightness, contrast=contrast
      )
  
      image_legacy_twisted_cpu = self.twist_cpu(
          image_ssd_crop,
          saturation=saturation,
          contrast=contrast,
          brightness=brightness,
          hue=hue,
      )
      image_legacy_twisted_gpu = self.twist_gpu(
          image_ssd_crop.gpu(),
          saturation=saturation,
          contrast=contrast,
          brightness=brightness,
          hue=hue,
      )
  
      image_flipped_cpu = self.flip_cpu(image_resized_cpu)
      boxes_flipped_cpu = self.bbox_flip_cpu(boxes_ssd_crop)
  
      image_flipped_gpu = self.flip_gpu(image_resized_cpu.gpu())
      boxes_flipped_gpu = self.bbox_flip_gpu(boxes_ssd_crop.gpu())
  
      encoded_boxes_cpu, encoded_labels_cpu = self.box_encoder_cpu(
          boxes_ssd_crop, labels_ssd_crop
      )
      encoded_boxes_gpu, encoded_labels_gpu = self.box_encoder_gpu(
          boxes_ssd_crop.gpu(), labels_ssd_crop.gpu()
      )
  
      (
          encoded_offset_boxes_cpu,
          encoded_offset_labels_cpu,
      ) = self.box_encoder_cpu_offsets(boxes_ssd_crop, labels_ssd_crop)
      (
          encoded_offset_boxes_gpu,
          encoded_offset_labels_gpu,
      ) = self.box_encoder_gpu_offsets(
          boxes_ssd_crop.gpu(), labels_ssd_crop.gpu()
      )
  
      image_gpu = self.decode_gpu(inputs)
      image_gpu_slice_gpu = self.slice_gpu(
          image_gpu, crop_begin, crop_size
      )
      image_decode_crop_gpu = self.decode_gpu_crop(
          inputs, crop_begin, crop_size
      )
  
      return (
          labels,
          image_ssd_crop,
          image_decode_crop,
          image_slice_cpu,
          image_slice_gpu,
          boxes_ssd_crop,
          boxes_random_crop,
          labels_ssd_crop,
          labels_random_crop,
          image_resized_cpu,
          image_resized_gpu,
          image_normalized_cpu,
          image_normalized_gpu,
          image_twisted_cpu,
          image_twisted_gpu,
          image_legacy_twisted_cpu,
          image_legacy_twisted_gpu,
          image_flipped_cpu,
          image_flipped_gpu,
          boxes_flipped_cpu,
          boxes_flipped_gpu,
          encoded_boxes_cpu,
          encoded_boxes_gpu,
          encoded_labels_cpu,
          encoded_labels_gpu,
          encoded_offset_boxes_cpu,
          encoded_offset_boxes_gpu,
          encoded_offset_labels_cpu,
          encoded_offset_labels_gpu,
          image_decode_crop_gpu,
          image_gpu_slice_gpu,
      )
  
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 2 for calling the DetectionPipeline obj's underlying member method code with example usage: obj.define_graph() and returns: labels,  image_ssd_crop,  image_decode_crop,  image_slice_cpu,  image_slice_gpu,  boxes_ssd_crop,  boxes_random_crop,  labels_ssd_crop,  labels_random_crop,  image_resized_cpu,  image_resized_gpu,  image_normalized_cpu,  image_normalized_gpu,  image_twisted_cpu,  image_twisted_gpu,  image_legacy_twisted_cpu,  image_legacy_twisted_gpu,  image_flipped_cpu,  image_flipped_gpu,  boxes_flipped_cpu,  boxes_flipped_gpu,  encoded_boxes_cpu,  encoded_boxes_gpu,  encoded_labels_cpu,  encoded_labels_gpu,  encoded_offset_boxes_cpu,  encoded_offset_boxes_gpu,  encoded_offset_labels_cpu,  encoded_offset_labels_gpu,  image_decode_crop_gpu,  image_gpu_slice_gpu