code: def rms(cp, size):
      _check_params(len(cp), size)
  
      sample_count = _sample_count(cp, size)
      if sample_count == 0:
          return 0
  
      sum_squares = sum(
          sample**2 for sample in _get_samples(cp, size)
      )
      return int(math.sqrt(sum_squares / sample_count))
  
imports: import math
  import struct
  from ctypes import create_string_buffer
label_desc: Use image node_id 16 for calling a global function with example usage: rms(cp, size) and returns: int, int