code: def check_operator_to_decibels_vs_python(
      device, batch_size, input_shape, multiplier, reference, cutoff_db
  ):
      eii1 = RandomDataIterator(
          batch_size, shape=input_shape, dtype=np.float32
      )
      eii2 = RandomDataIterator(
          batch_size, shape=input_shape, dtype=np.float32
      )
      compare_pipelines(
          ToDecibelsPipeline(
              device,
              batch_size,
              iter(eii1),
              multiplier=multiplier,
              reference=reference,
              cutoff_db=cutoff_db,
          ),
          ToDecibelsPythonPipeline(
              device,
              batch_size,
              iter(eii2),
              multiplier=multiplier,
              reference=reference,
              cutoff_db=cutoff_db,
          ),
          batch_size=batch_size,
          N_iterations=3,
          eps=1e-04,
      )
  
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 2 for calling a global function with example usage: check_operator_to_decibels_vs_python(device, batch_size, input_shape, multiplier, reference, cutoff_db) without return types