def check_pickling_recovery(original, protocol):
 f = pickle.dumps(original, protocol=protocol)
 unpickled = pickle.loads(f)
 class_history = [original.__class__]
 generic_recursive_equality_test(original, unpickled, class_history)

def check_pickling_recovery ( original , protocol ) : f = pickle . dumps ( original , protocol = protocol ) unpickled = pickle . loads ( f ) class_history = [ original . __class__ ] generic_recursive_equality_test ( original , unpickled , class_history )
try to pickle an object .