code: def get_interacting_features(interaction, k):
      scores_list = []
      for ind_1, ind_2 in itertools.combinations(
          range(interaction.shape[0]), 2
      ):
          scores_list.append([interaction[ind_1, ind_2], ind_1, ind_2])
      df = pd.DataFrame(scores_list)
      df = df.sort_values(0, ascending=False)
      interactions = []
      for i in range(k):
          interactions.append((df.iloc[i, 1], df.iloc[i, 2]))
      return set(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 5 for calling a global function with example usage: get_interacting_features(interaction, k) and returns: set