code: def set_boolean(self, option, value):
          
          if not isinstance(value, bool):
              raise TypeError("%s must be a boolean" % option)
  
          self.options[option] = str(value).lower()
docs: Set a boolean option.
  
              Args:
                  option (str): name of option.
                  value (bool): value of the option.
  
              Raises:
                  TypeError: Value must be a boolean.