code: def get_most_frequent_value(values: list):
      
      if len(values) == 0:
          return None
  
      most_common = Counter(values).most_common()
      result, max_count = most_common[0]
      for value, count in most_common:
          if count < max_count:
              return result
          else:
              result = value
  
      return result
docs: Return the most frequent value in list.
      If there is no unique one, return the maximum of the most frequent values
  
      :param values:
      :return: