code: def curry_pair_dictionary(key_pair_dict, default_value=0.0):
      
      result = defaultdict(dict)
      for (a, b), value in key_pair_dict.items():
          result[a][b] = value
      return result
docs: Transform dictionary from pairs of keys to dict -> dict -> float