code: def interaction_tpr(i_gt: Set[Tuple], i_hat: Set[Tuple], p: int):
      if len(i_gt) == 0:
          return
      n_interactions = len(i_gt)
      return len(i_hat.intersection(i_gt)) / n_interactions
  
file_path: imodels/imodels/util/tree_interaction_utils.py
imports: import itertools
  from typing import Set, Tuple
  import numpy
  import pandas
label_desc: Use image node_id 7 for calling a global function with example usage: interaction_tpr(i_gt, i_hat, p) and returns: unknown