code: def base_define_graph(self, inputs, labels):
      images = self.decode(inputs)
      images = self.resize(images, resize_shorter=self.resize_rng())
      output = self.cmn(
          images, crop_pos_x=self.uniform(), crop_pos_y=self.uniform()
      )
      return (output, labels.gpu())
  
imports: import numpy
  import nvidia.dali.ops
  import nvidia.dali.plugin.tf
  import nvidia.dali.types
  import os.path
  import tensorflow
  from nvidia.dali.pipeline import Pipeline
  from nose_utils import raises
  from test_utils import get_dali_extra_path
label_desc: Use image node_id 2 for calling the CommonPipeline obj's underlying member method code with example usage: obj.base_define_graph(inputs, labels) and returns: output,  labels