def METHOD_NAME(self):
    if self.settings.compiler.cppstd:
        tools.check_min_cppstd(self, 17)
    else:
        if self._minimum_compiler_version_supporting_cxx17:
            if tools_scm.Version(self.settings.compiler.version) < self._minimum_compiler_version_supporting_cxx17:
                raise ConanInvalidConfiguration("gn requires a compiler supporting c++17")
        else:
            self.output.warn("gn recipe does not recognize the compiler. gn requires a compiler supporting c++17. Assuming it does.")