code: def minmax(cp, size):
      _check_params(len(cp), size)
  
      max_sample, min_sample = 0, 0
      for sample in _get_samples(cp, size):
          max_sample = builtin_max(sample, max_sample)
          min_sample = builtin_min(sample, min_sample)
  
      return min_sample, max_sample
  
imports: import math
  import struct
  from ctypes import create_string_buffer
label_desc: Use image node_id 14 for calling a global function with example usage: minmax(cp, size) and returns: min_sample,  max_sample