def METHOD_NAME(base_path: str) -> bool:
    def read_file(path):
        with open(path) as f:
            return f.read()
    test = read_file(base_path + "/build/test.c")
    test_check = "TVMGetLastError" in test
    default_lib2 = read_file(base_path + "/codegen/host/src/default_lib2.c")
    regex = (
        r"(?s)arm_avgpool_s16(.*?)"
        r'ARM_CMSIS_NN_ARG_ERROR: TVMAPISetLastError\("ARM_CMSIS_NN_ARG_ERROR(.*?)'
        r'ARM_CMSIS_NN_NO_IMPL_ERROR: TVMAPISetLastError\("ARM_CMSIS_NN_NO_IMPL_ERROR'
    )
    default_lib2_check = re.search(regex, default_lib2) is not None
    if debug_last_error:
        return test_check and default_lib2_check
    else:
        return not (test_check or default_lib2_check)