class_docstr: Encapsulation of a request to Demisto to create an incident.
class_docstr_tok: ["Encapsulation","of","a","request","to","Demisto","to","create","an","incident","."]
code: def add_label(self, label, value):
      # Demisto rejects non-string values; so type-cast everything to strings first
      self._labels.append(
          {
              "type": str(label),
              "value": str(value),
          }
      )
      self._labels.sort(key=lambda x: x["type"])
  
imports: from collections import OrderedDict
  from streamalert.alert_processor.helpers import compose_alert
  from streamalert.alert_processor.outputs.output_base import OutputDispatcher, OutputProperty, StreamAlertOutput, OutputRequestFailure
  from streamalert.shared.logger import get_logger
label_desc: Use image node_id 2 for calling the DemistoCreateIncidentRequest obj's underlying member method code with example usage: obj.add_label(label, value) without return types