code: def test_lookup_table_vs_python_op():
      layout = types.NHWC
      for device in {"cpu", "gpu"}:
          for dtype in {types.FLOAT, types.FLOAT16, types.INT64}:
              for batch_size, shape, dictionary_type, default_value in [
                  (1, (300, 300, 3), "random", 0.0),
                  (1, (300, 300, 3), "empty", 0.33),
                  (10, (300, 300, 3), "random", 0.9),
                  (3, (300, 300, 3), "small", 0.4),
              ]:
                  yield (
                      check_lookup_table_vs_python_op,
                      device,
                      batch_size,
                      layout,
                      shape,
                      dtype,
                      dictionary_type,
                      default_value,
                  )
  
imports: import numpy
  import random
  from nvidia.dali import fn, types, ops, pipeline_def
  from nvidia.dali.pipeline import Pipeline
  from test_utils import RandomlyShapedDataIterator
  from test_utils import compare_pipelines
  from nose2.tools import params
label_desc: Use image node_id 3 for calling a global function with example usage: test_lookup_table_vs_python_op() without return types