def METHOD_NAME(self):
    if self.settings.compiler.cppstd:
        tools.check_min_cppstd(self, self._minimum_cpp_standard)
    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
            )
        )
    else:
        if 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,
                )
            )