code: def import_tf():
      global tf
      global GPUOptions
      global ConfigProto
      global Session
      from nvidia.dali.plugin.tf import (
          DALIIterator as TensorFlowIterator,
      )
      import tensorflow as tf
  
      try:
          from tensorflow.compat.v1 import GPUOptions
          from tensorflow.compat.v1 import ConfigProto
          from tensorflow.compat.v1 import Session
      except ImportError:
          # Older TF versions don't have compat.v1 layer
          from tensorflow import GPUOptions
          from tensorflow import ConfigProto
          from tensorflow import Session
  
      try:
          tf.compat.v1.disable_eager_execution()
      except NameError:
          pass
      return TensorFlowIterator
  
file_path: DALI/dali/test/python/test_RN50_data_fw_iterators.py
imports: from nvidia.dali.pipeline import Pipeline
  import nvidia.dali.ops
  import nvidia.dali.types
  import argparse
  import time
label_desc: Use image node_id 5 for calling a global function with example usage: import_tf() and returns: TensorFlowIterator