def convert_to_demisto_severity(severity: str) -> int:
    "Maps HelloWorld severity to Cortex XSOAR severity\n\n    Converts the HelloWorld alert severity level ('Low', 'Medium',\n    'High', 'Critical') to Cortex XSOAR incident severity (1 to 4)\n    for mapping.\n\n    :type severity: ``str``\n    :param severity: severity as returned from the HelloWorld API (str)\n\n    :return: Cortex XSOAR Severity (1 to 4)\n    :rtype: ``int``\n    "
    return {'Low': IncidentSeverity.LOW, 'Medium': IncidentSeverity.MEDIUM, 'High': IncidentSeverity.HIGH, 'Critical': IncidentSeverity.CRITICAL}[severity]
Maps HelloWorld severity to Cortex XSOAR severity

Converts the HelloWorld alert severity level ('Low', 'Medium',
'High', 'Critical') to Cortex XSOAR incident severity (1 to 4)
for mapping.

:type severity: ``str``
:param severity: severity as returned from the HelloWorld API (str)

:return: Cortex XSOAR Severity (1 to 4)
:rtype: ``int``
def convert_to_demisto_severity(severity: str) -> int:
    "Maps HelloWorld severity to Cortex XSOAR severity\n\n    Converts the HelloWorld alert severity level ('Low', 'Medium',\n    'High', 'Critical') to Cortex XSOAR incident severity (1 to 4)\n    for mapping.\n\n    :type severity: ``str``\n    :param severity: severity as returned from the HelloWorld API (str)\n\n    :return: Cortex XSOAR Severity (1 to 4)\n    :rtype: ``int``\n    "
    return {'Low': IncidentSeverity.LOW, 'Medium': IncidentSeverity.MEDIUM, 'High': IncidentSeverity.HIGH, 'Critical': IncidentSeverity.CRITICAL}[severity]