input: Write a Python function to calculate the frequency of each tuple in a list of tuples.
  assert calculate_tuple_frequency([(6, 5, 8), (2, 7), (6, 5, 8), (6, 5, 8), (9,), (2, 7)] ) == '[(6, 5, 8, 3), (2, 7, 2), (9, 1)]'
  assert calculate_tuple_frequency([(4, 2, 4), (7, 1), (4, 8), (4, 2, 4), (9, 2), (7, 1)] ) == '[(4, 2, 4, 2), (7, 1, 2), (4, 8, 1), (9, 2, 1)]'
  assert calculate_tuple_frequency([(11, 13, 10), (17, 21), (4, 2, 3), (17, 21), (9, 2), (4, 2, 3)] ) == '[(11, 13, 10, 1), (17, 21, 2), (4, 2, 3, 2), (9, 2, 1)]'
output: def calculate_tuple_frequency(lst):
      frequency = {}
      for tpl in lst:
          if tpl in frequency:
              frequency[tpl] += 1
          else:
              frequency[tpl] = 1
      result = []
      for tpl in lst:
          if tpl in frequency:
              result.append(tpl + (frequency[tpl],))
              del frequency[tpl]
      return str(result)