code: def size_median(recs):
      mw = [v.w for v in recs]
      mh = [v.h for v in recs]
      mw.sort()
      mh.sort()
      return (mw[len(mw) // 2], mh[len(mh) // 2])
  
file_path: pygraphistry/graphistry/layout/utils/geometry.py
imports: from numpy import array, cos, sin
  from math import atan2, sqrt
label_desc: Use image node_id 4 for calling a global function with example usage: size_median(recs) and returns: mw,  mh