code: def compare(dali_res, np_res):
      for dali_sample, np_sample in zip(dali_res, np_res):
          assert dali_sample.shape == np_sample.shape
          if dali_res[0].dtype == np.float32:
              assert np.allclose(dali_sample, np_sample)
          else:
              if not np.array_equal(dali_sample, np_sample):
                  print(dali_sample)
                  print(np_sample)
                  assert np.array_equal(dali_sample, np_sample)
  
imports: import nvidia.dali.fn
  from nvidia.dali.pipeline import Pipeline
  from nose.tools import nottest
  import numpy
  from test_utils import np_type_to_dali
  from nose_utils import assert_raises
label_desc: Use image node_id 5 for calling a global function with example usage: compare(dali_res, np_res) without return types