code: def check(
      input, out_cpu, out_gpu, H, S, brightness, contrast, out_dtype
  ):
      ref = ref_color_twist(
          input, H, S, brightness, contrast, out_dtype
      )
      if np.issubdtype(out_dtype, np.floating):
          rel_err = 1e-3
          abs_err = 1e-3
      else:
          rel_err = 1 / 512
          # due to rounding error for integer out type can be off by 1
          abs_err = 1
  
      assert np.allclose(out_cpu, ref, rel_err, abs_err)
      assert np.allclose(out_gpu, ref, rel_err, abs_err)
  
file_path: DALI/dali/test/python/operator_1/test_color_twist.py
imports: import math
  import numpy
  import nvidia.dali.fn
  import nvidia.dali.types
  import random
  from nvidia.dali import pipeline_def
  from sequences_test_utils import ArgCb, video_suite_helper
  from test_utils import RandomDataIterator
label_desc: Use image node_id 5 for calling a global function with example usage: check(input, out_cpu, out_gpu, H, S, brightness, contrast, out_dtype) without return types