code: def _calc_overlap_coef(
      markers1: dict,
      markers2: dict,
  ):
      
      overlap_coef=np.zeros((len(markers1), len(markers2)))
  
      j=0
      for marker_group in markers1:
          tmp = [len(markers2[i].intersection(markers1[marker_group]))/
                 max(min(len(markers2[i]), len(markers1[marker_group])),1) for i in markers2.keys()]
          overlap_coef[j,:] = tmp
          j += 1
  
      return overlap_coef
docs: Calculate overlap coefficient between the values of two dictionaries
  
      Note: dict values must be sets