Write object in Python pickle format.
obj (Any) – The object to be pickled.
path (str) – The path of the file to save the pickled object.
makedir (bool) – Whether to create the directory if it doesn’t exist. Default is True.