def weights(): saved = {} for i in range(len(bread_pairs["key_id"])): drawing = np.array(bread_pairs[\'bitmap\'][i], dtype=np.uint8)