code: def _calc_sim(r1, r2, imsize):
      return (
          _sim_colour(r1, r2)
          + _sim_texture(r1, r2)
          + _sim_size(r1, r2, imsize)
          + _sim_fill(r1, r2, imsize)
      )
  
imports: import sys
  from past.builtins import cmp
  import skimage.io
  import skimage.feature
  import skimage.color
  import skimage.transform
  import skimage.util
  import skimage.segmentation
  import numpy
label_desc: Use image node_id 6 for calling a global function with example usage: _calc_sim(r1, r2, imsize) and returns: unknown