input: Write a function to calculate the mean, median, and mode of a given list of numbers.
  assert calculate_stats([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]) == (5.5, 5.5, 1)
  assert calculate_stats([10, 20, 20, 40, 40, 40, 50]) == (31.428571428571427, 40.0, 40)
  assert calculate_stats([5, 5, 5, 6, 6, 7, 8, 9, 9]) == (6.666666666666667, 6.0, 5)
output: def calculate_stats(numbers):
      from collections import Counter
      from statistics import mean, median, mode
      
      mean_value = mean(numbers)
      median_value = median(numbers)
      
      frequency = Counter(numbers)
      mode_value = frequency.most_common(1)[0][0]
      
      return mean_value, median_value, mode_value