code: def close(a, b):
      if isinstance(a, np.float32):
          return np.isclose(a, b)
      absdiff = a - b if b < a else b - a
      return absdiff <= 1
  
file_path: DALI/dali/test/python/operator_2/test_random_resized_crop.py
imports: import numpy
  import nvidia.dali
  import nvidia.dali.fn
  import test_utils
label_desc: Use image node_id 1 for calling a global function with example usage: close(a, b) and returns: unknown, np