code: def convert_sat(data, out_dtype):
      clipped = np.clip(data, *type_range(out_dtype))
      if out_dtype not in [np.half, np.single, np.double]:
          clipped = np.round(clipped)
      return clipped.astype(out_dtype)
  
imports: import nvidia.dali.fn
  from nvidia.dali import pipeline_def
  import nvidia.dali.types
  import numpy
  from test_utils import compare_pipelines, python_function
  from test_utils import RandomDataIterator
  from sequences_test_utils import ArgCb, video_suite_helper
  import random
label_desc: Use image node_id 3 for calling a global function with example usage: convert_sat(data, out_dtype) and returns: clipped