def METHOD_NAME(self):
    if self.settings.compiler.get_safe("cppstd"):
        check_min_cppstd(self, self._min_cppstd)
    compiler = str(self.settings.compiler)
    version = Version(self.settings.compiler.version)
    if compiler in self._min_compilers_version and version < self._min_compilers_version[compiler]:
        raise ConanInvalidConfiguration(f"{self.name} requires a compiler that supports at least C++{self._min_cppstd}")