def assign_freq(test_list):
  from collections import Counter 
  
  res = [(*key, val) for key, val in Counter(test_list).items()]
  return (str(res)) 
def similar_elements(test_tup1, test_tup2):
  
  res = tuple(set(test_tup1) & set(test_tup2))
  return (res) 