def METHOD_NAME(self):
    compiler = self.settings.compiler
    if compiler.get_safe("cppstd"):
        tools.check_min_cppstd(self, "17")
    min_version = self._minimum_compilers_version.get(str(self.settings.compiler))
    if not min_version:
        self.output.warn("{} recipe lacks information about the {} compiler support.".format(
            self.name, self.settings.compiler))
    elif tools.Version(self.settings.compiler.version) < min_version:
            raise ConanInvalidConfiguration("{} requires C++17 support. The current compiler {} {} does not support it.".format(
                self.name, self.settings.compiler, self.settings.compiler.version))