def METHOD_NAME(self):
    compiler = self.settings.compiler
    if compiler.get_safe("cppstd"):
        check_min_cppstd(self, self._min_cppstd)
    minimum_version = self._compilers_minimum_version.get(str(self.settings.compiler), False)
    if not minimum_version:
        self.output.warning(f"{self.name} requires C++17. Your compiler is unknown. Assuming it supports C++17.")
    elif Version(self.settings.compiler.version) < minimum_version:
        raise ConanInvalidConfiguration(f"{self.name} requires a compiler that supports at least C++17")