code: def _override_sugar(func):
      '''Use this decorator to override an attribute that is specified in
      blessings' sugar dict with your own function that adds some additional
      functionality.
      '''
      attr_name = func.__name__
      @property
      @wraps(func)
      def func_that_uses_terminal_sugar(self):
          func(self)
          return self.__getattr__(attr_name)
      return func_that_uses_terminal_sugaf _override_sugar(func):
      '''Use this decorator to override an attribute that is specified in
      blessings' sugar dict with your own function that adds some additional
      functionality.
      '''
      attr_name = func.__name__
      @property
      @wraps(func)
      def func_that_uses_terminal_sugar(self):
          func(self)
          return self.__getattr__(attr_name)
      return func_that_uses_terminal_sugar
docs: Use this decorator to override an attribute that is specified in
      blessings' sugar dict with your own function that adds some additional
      functionality.