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