code: def getsample(cp, size, i):
      _check_params(len(cp), size)
      if not (0 <= i < len(cp) / size):
          raise error("Index out of range")
      return _get_sample(cp, size, i)
  
imports: import math
  import struct
  from ctypes import create_string_buffer
label_desc: Use image node_id 12 for calling a global function with example usage: getsample(cp, size, i) and returns: _get_sample