code: def _get_union_keyset(dist_a, dist_b):
      keyset1 = set(dist_a.keys())
      keyset2 = set(dist_b.keys())
  
      keyset1.update(keyset2)
  
      return (
          list(keyset1),
          len(dist_a.keys()),
          len(dist_b.keys()),
          len(dist_a.keys()) + len(dist_b.keys()) - len(keyset1),
      )
  
file_path: contextual-ai/xai/recommendations/recommendation.py
imports: import xai.constants
  from sklearn.metrics.pairwise import cosine_similarity
  import math
label_desc: Use image node_id 3 for calling a global function with example usage: _get_union_keyset(dist_a, dist_b) and returns: list,  len,  len,  unknown