code: def __init__(self, iterator, batch_size):
      super().__init__(
          "cpu",
          iterator,
          batch_size,
          exec_async=False,
          exec_pipelined=False,
      )
      function = partial(log_tensor)
      self.log = ops.PythonFunction(function=function)
  
imports: from nvidia.dali.pipeline import Pipeline
  import nvidia.dali.ops
  import numpy
  from functools import partial
  from test_utils import compare_pipelines
  from test_utils import RandomDataIterator
  from nose_utils import raises
label_desc: Use image node_id 1 to create a new NLPythonPipeline object from inherited base classes: NaturalLogarithmPipeline with example: obj = NLPythonPipeline(iterator, batch_size)