docs: def set_option(self, option, value, _global=False):
          """
          Set option ``$ tmux set-option <option> <value>``.
  
          Parameters
          ----------
          option : str
              the window option. such as 'default-shell'.
          value : str, int, or bool
              True/False will turn in 'on' and 'off'. You can also enter 'on' or
              'off' directly.
          _global : bool, optional
              check for option globally across all servers (-g)
  
          Raises
          ------
          :exc:`exc.OptionError`, :exc:`exc.UnknownOption`,
          :exc:`exc.InvalidOption`, :exc:`exc.AmbiguousOption`
  
          Notes
          -----
          .. todo::
  
              Needs tests
          """
  
          if isinstance(value, bool) and value:
              value = 'on'
          elif isinstance(value, bool) and not value:
              value = 'off'
  
          tmux_args = tuple()
  
          if _global:
              tmux_args += ('-g',)
  
          tmux_args += (option, value)
  
          proc = self.cmd('set-option', *tmux_args)
  
          if isinstance(proc.stderr, list) and len(proc.stderr):
              handle_option_error(proc.stderr[0])