with open(file_name, 'rb') as anno_file:
anno = pkl.load(anno_file)
np.load(file_name, allow_pickle=True)
with open(name, "wb") as f:
pickle.dump(d, f, pickle.HIGHEST_PROTOCOL)
with open(name, "wb") as f:
pickle.dump(d, f, protocol= 4.0)
# some of pickle only support the 4.0
# so you have to dump the 4.0