def METHOD_NAME(macro) -> Tuple[str, str]:
    match, type = re.search(r"(?ims)Public Function (\w+).+? Xor .+?End Function", macro), "xor"
    if not match:
        match, type = re.search(r"(?ims)Public Function (\w+).+?\d+\s*-\s*\d+.+?End Function", macro), "sub"
    return (match.group(1), type) if match else (None, None)