input: Write a function to output the top 3 numbers from an array of integers. If the array has fewer than 3 numbers, return the numbers sorted in descending order. If the array is empty, return an empty list.
  
  def top_three(numbers):
      if len(numbers) == 0:
          return []
      sorted_numbers = sorted(numbers, reverse=True)
      return sorted_numbers[:3]
  
  assert top_three([7, 13, 5, 8, 50, 11, 64, 48]) == [64, 50, 48]
  assert top_three([9, 3, 7]) == [9, 7, 3]
  assert top_three([]) == []
  assert top_three([5]) == [5]
  assert top_three([8, 4, 1]) == [8, 4, 1]
  
output: def top_three(numbers):
      if len(numbers) == 0:
          return []
      sorted_numbers = sorted(numbers, reverse=True)
      return sorted_numbers[:3]