input: def find_mode(numbers: List[float]) -> float:
      """ Finds the mode (most frequent number) from a given list of numbers.
      >>> find_mode([1.0, 2.0, 3.0, 2.0, 4.0, 2.0])
      2.0
      >>> find_mode([1.0, 1.0, 2.0, 3.0, 3.0, 3.0, 4.0])
      3.0
      """
output:     frequency = {}
      for num in numbers:
          if num in frequency:
              frequency[num] += 1
          else:
              frequency[num] = 1
      
      max_freq = max(frequency.values())
      for num, freq in frequency.items():
          if freq == max_freq:
              return num