code: def test_python_operator_not_allowed_in_tf_dataset_error():
      pipeline = Pipeline(
          1, 1, 0, exec_pipelined=False, exec_async=False
      )
      with pipeline:
          output = fn.python_function(
              function=lambda: np.zeros((3, 3, 3))
          )
          pipeline.set_outputs(output)
  
      shapes = (1, 3, 3, 3)
      dtypes = tf.float32
  
      with tf.device("/cpu:0"):
          _ = dali_tf.DALIDataset(
              pipeline=pipeline,
              batch_size=1,
              output_shapes=shapes,
              output_dtypes=dtypes,
              num_threads=1,
              device_id=0,
          )
  
file_path: DALI/dali/test/python/test_dali_tf_dataset.py
imports: import tensorflow
  import numpy
  from nvidia.dali.pipeline import Pipeline
  import nvidia.dali.fn
  import nvidia.dali.plugin.tf
  from nose_utils import raises
  from test_utils_tensorflow import get_image_pipeline
label_desc: Use image node_id 2 for calling a global function with example usage: test_python_operator_not_allowed_in_tf_dataset_error() without return types