def METHOD_NAME(self) -> list[str]:
    """
    Infer all supported config versions from a test config.
    """
    versions = []
    test_config = ocio.Config()
    major_version = 1
    while True:
        try:
            # Setting the major version will set the minor version to the most
            # recent value.
            test_config.setMajorVersion(major_version)
            max_minor_version = test_config.getMinorVersion()
            # Iterate minor versions at and below the inferred maximum to test
            # which are valid.
            for minor_version in range(max_minor_version + 1):
                try:
                    # Test the validity of this major/minor pair, adding it to the
                    # output if no exception is raised.
                    test_config.setVersion(major_version, minor_version)
                    versions.append(f"{major_version}.{minor_version}")
                except ocio.Exception:
                    continue
        except ocio.Exception:
            break
        major_version += 1
    return versions