code: def to_bool_alt(value):
      '''
      Convert python to zfs yes/no value
      '''
      value = from_bool_alt(value)
      if isinstance(value, bool):
          value = 'yes' if value else 'no'
      elif value is None:
          value = 'none'
  
      return valuf to_bool_alt(value):
      '''
      Convert python to zfs yes/no value
      '''
      value = from_bool_alt(value)
      if isinstance(value, bool):
          value = 'yes' if value else 'no'
      elif value is None:
          value = 'none'
  
      return value
docs: Convert python to zfs yes/no value