code: def dump(cls, obj, file, protocol=0):
          
          cls.save_option_state = True
          pickle.dump(obj, file, protocol=protocol)
          cls.save_option_state = False
docs: Equivalent to pickle.dump except that the HoloViews option
          tree is saved appropriately.