Function
pickle.dump

Signature

dump(obj, file, protocol=None, bin=None)