input: from typing import List
  
  
  def find_mode(values: List[int]) -> int:
      """Given a list of values, return the mode (most frequently occurring value).
      >>> find_mode([1, 2, 3, 2, 4, 2])
      2
      """
output:     frequency = {}
      for value in values:
          if value in frequency:
              frequency[value] += 1
          else:
              frequency[value] = 1
      
      max_freq = max(frequency.values())
      for key, value in frequency.items():
          if value == max_freq:
              return key