code: def check_integer(actual, ref, input=None):
      for i, a in enumerate(zip(actual, ref)):
          t = a[0].dtype
          min = np.iinfo(t).min
          max = np.iinfo(t).max
          a1 = np.clip(a[1], min, max)
          # actual values are saturated, so we must clip the reference, too
          assert np.allclose(a[0], a1, atol=2)
  
imports: from nvidia.dali.pipeline import Pipeline
  from nvidia.dali import backend
  import nvidia.dali.ops
  import numpy
  from test_utils import dali_type
  from nvidia.dali import fn, pipeline_def, types
  from nose2.tools import params
label_desc: Use image node_id 12 for calling a global function with example usage: check_integer(actual, ref, input) without return types