def METHOD_NAME(self):
    if self.settings.get_safe("compiler.cppstd"):
        check_min_cppstd(self, self._min_cppstd)
    def loose_lt_semver(v1, v2):
        lv1 = [int(v) for v in v1.split(".")]
        lv2 = [int(v) for v in v2.split(".")]
        min_length = min(len(lv1), len(lv2))
        return lv1[:min_length] < lv2[:min_length]
    compiler = self.settings.compiler
    min_version = self._minimum_compilers_version.get(str(compiler))
    if min_version and loose_lt_semver(str(compiler.version), min_version):
        raise ConanInvalidConfiguration(
            f"{self.ref} requires at least {compiler} {min_version} ({compiler.version} in use)"
        )