def convert_to_demisto_severity(dg_severity: str) -> int:
    """
    Convert dg_severity to demisto severity

    :param dg_severity:
    :return: int demisto severity
    """

    severity_map = {
        'Critical': 4,
        'High': 3,
        'Medium': 2,
    }

    return severity_map.get(dg_severity, 1)