def round_trip_pickle(obj, path=None):
if path is None:<EOL><INDENT>path = '<STR_LIT>'.format(random_bytes=rands(<NUM_LIT:10>))<EOL><DEDENT>with ensure_clean(path) as path:<EOL><INDENT>pd.to_pickle(obj, path)<EOL>return pd.read_pickle(path)<EOL><DEDENT>
Pickle an object and then read it again.

Parameters
----------
obj : pandas object
    The object to pickle and then re-read.
path : str, default None
    The path where the pickled object is written and then read.

Returns
-------
round_trip_pickled_object : pandas object
    The original object that was pickled and then re-read.