docs: def set(self, oid, value):
          """Use PySNMP to perform an SNMP SET operation on a single object.
  
          :param oid: The OID of the object to set.
          :param value: The value of the object to set.
          :raises: SNMPFailure if an SNMP request fails.
          """
          try:
              results = self.cmd_gen.setCmd(self._get_auth(),
                                            self._get_transport(),
                                            (oid, value))
          except snmp_error.PySnmpError as e:
              raise SNMPFailure(SNMP_FAILURE_MSG % ("SET", e))
  
          error_indication, error_status, error_index, var_binds = results
  
          if error_indication:
              # SNMP engine-level error.
              raise SNMPFailure(SNMP_FAILURE_MSG % ("SET", error_indication))
  
          if error_status:
              # SNMP PDU error.
              raise SNMPFailure(
                  "SNMP operation '%(operation)s' failed: %(error)s at"
                  " %(index)s" %
                  {'operation': "SET", 'error': error_status.prettyPrint(),
                   'index':
                       error_index and var_binds[int(error_index) - 1]
                       or '?'})