code: def define_graph(self):
      jpegs, labels = self.reader()
      decoded = self.decode(jpegs)
      images = decoded if self.device == "cpu" else decoded.gpu()
      normalized = self.norm(images)
      return self.func(normalized, normalized)
  
file_path: DALI/dali/test/python/test_gpu_python_function_operator.py
imports: import cupy
  from nvidia.dali.pipeline import Pipeline
  import nvidia.dali.ops
  import nvidia.dali.types
  import numpy
  import test_utils
  import random
  import os
label_desc: Use image node_id 2 for calling the PythonFunctionPipeline obj's underlying member method code with example usage: obj.define_graph() and returns: self