def get_hot_value(my_list):
    max_val, hot_list, is_max_found = max(my_list), [], False
for item in my_list:
    if item == max_val and not is_max_found:
        hot_list.append(1)
else:
    hot_list.append(0)
is_max_found = True
return hot_list
python convert prediction result into one hot