def freq_element(test_tup):
  from collections import defaultdict 
  
  res = defaultdict(int)
  for ele in test_tup:
    res[ele] += 1
  return (str(dict(res))) 
def freq_element(test_tup):
    from collections import defaultdict
    res = defaultdict(int)
   
    _ele_i = 0
    while _ele_i < len(test_tup):
        ele = test_tup[_ele_i]
        res[ele] += 1
        _ele_i += 1
    return str(dict(res))