def consecutive_duplicates(nums):
    from itertools import groupby
    
    return [key for key, group in groupby(nums)] 
def similar_elements(test_tup1, test_tup2):
  
  res = tuple(set(test_tup1) & set(test_tup2))
  return (res) 