code: def get_kernel_extents(params, dilation):
      ko_h = dilation * (int(params.k_h) - 1) + 1
      ko_w = dilation * (int(params.k_w) - 1) + 1
      return ko_h, ko_w
  
imports: from collections import namedtuple
  import math
label_desc: Use image node_id 1 for calling a global function with example usage: get_kernel_extents(params, dilation) and returns: ko_h,  ko_w