input: def find_mode(numbers: List[float]) -> float:
      """ Return the mode of the given set of values. The mode is the value
      that appears most frequently in the list. If there is a tie for the most
      frequent value, it will return the first one found.
      >>> find_mode([1, 2, 3, 2, 4, 2])
      2.0
      """
output:     frequency = {}
      for num in numbers:
          if num in frequency:
              frequency[num] += 1
          else:
              frequency[num] = 1
      
      max_freq = 0
      mode = None
      for num, freq in frequency.items():
          if freq > max_freq:
              max_freq = freq
              mode = num
      
      return float(mode)