code: def get_max_value_key(dic):
      
      v = np.array(list(dic.values()))
      k = np.array(list(dic.keys()))
  
      maxima = np.where(v == np.max(v))[0]
      if len(maxima) == 1:
          return k[maxima[0]]
      else:
          # In order to be consistent, always selects the minimum key
          # (guaranteed to be unique) when there are multiple maximum values.
          return k[maxima[np.argmin(k[maxima])]]
docs: Gets the key for the maximum value in a dict.