original_docstring: 
      Transforms list of offenses given into incidents for Demisto.
      Args:
          offenses (List[Dict]): List of the offenses to transform into incidents.
          incident_type (Optional[str]): Incident type to be used for each incident.
  
      Returns:
          (List[Dict]): Incidents list.
      
docstring: Transforms list of offenses given into incidents for Demisto.
docstring_tokens: Transforms list of offenses given into incidents for Demisto .
code: def create_incidents_from_offenses(offenses: List[Dict], incident_type: Optional[str]) -> List[Dict]:
      """
      Transforms list of offenses given into incidents for Demisto.
      Args:
          offenses (List[Dict]): List of the offenses to transform into incidents.
          incident_type (Optional[str]): Incident type to be used for each incident.
  
      Returns:
          (List[Dict]): Incidents list.
      """
      print_debug_msg(f'Creating {len(offenses)} incidents')
      return [{
          'name': f'''{offense.get('id')} {offense.get('description', '')}''',
          'rawJSON': json.dumps(offense),
          'occurred': get_time_parameter(offense.get('start_time'), iso_format=True),
          'type': incident_type
      } for offense in offenses]
code_tokens: def create_incidents_from_offenses ( offenses : List [ Dict ] , incident_type : Optional [ str ] ) -> List [ Dict ] : print_debug_msg ( f'Creating {len(offenses)} incidents' ) return [ { 'name' : f'''{offense.get('id')} {offense.get('description', '')}''' , 'rawJSON' : json . dumps ( offense ) , 'occurred' : get_time_parameter ( offense . get ( 'start_time' ) , iso_format = True ) , 'type' : incident_type } for offense in offenses ]
short_docstring: Transforms list of offenses given into incidents for Demisto.
short_docstring_tokens: Transforms list of offenses given into incidents for Demisto .
comment: """
      Transforms list of offenses given into incidents for Demisto.
      Args:
          offenses (List[Dict]): List of the offenses to transform into incidents.
          incident_type (Optional[str]): Incident type to be used for each incident.
  
      Returns:
          (List[Dict]): Incidents list.
      """