def METHOD_NAME(op: ast.operator) -> types.Operator:
    """Returns one of our known operators from an operator of the ast module.
    Raise an exception in case of an unsupported operator.
    """
    match op:
        case ast.Add():
            return types.Operator.ADD
        case ast.Sub():
            return types.Operator.SUB
        case ast.Mult():
            return types.Operator.MUL
        case ast.Div():
            return types.Operator.DIV
        case ast.Mod():
            return types.Operator.MOD
        case _:
            raise UnsupportedOperator(f"Unsupported operator: {op}")