code: def __init__(self, function, device, synchronize=True):
      super(DLTensorOpPipeline, self).__init__(device)
      self.op = ops.DLTensorPythonFunction(
          function=function,
          device=device,
          num_outputs=2,
          synchronize_stream=synchronize,
      )
  
imports: import numpy
  import nvidia.dali.ops
  import nvidia.dali.types
  import os
  import random
  from functools import partial
  from nvidia.dali.pipeline import Pipeline
  from nvidia.dali import fn, pipeline_def
  from nvidia.dali.python_function_plugin import current_dali_stream
label_desc: Use image node_id 1 to create a new DLTensorOpPipeline object from inherited base classes: CommonPipeline with example: obj = DLTensorOpPipeline(function, device, synchronize)