code: def resnik_sim(go_id1, go_id2, godag, termcounts):
      '''
          Computes Resnik's similarity measure.
      '''
      goterm1 = godag[go_id1]
      goterm2 = godag[go_id2]
      if goterm1.namespace == goterm2.namespace:
          msca_goid = deepest_common_ancestor([go_id1, go_id2], godag)
          return get_info_content(msca_goid, termcountsf resnik_sim(go_id1, go_id2, godag, termcounts):
      '''
          Computes Resnik's similarity measure.
      '''
      goterm1 = godag[go_id1]
      goterm2 = godag[go_id2]
      if goterm1.namespace == goterm2.namespace:
          msca_goid = deepest_common_ancestor([go_id1, go_id2], godag)
          return get_info_content(msca_goid, termcounts)
docs: Computes Resnik's similarity measure.