def METHOD_NAME(flags):
    flags = flags.split(",")
    if "" in flags:
        flags.remove("")
    result = FutureSpec()
    if "CO_FUTURE_DIVISION" in flags:
        result.enableFutureDivision()
    if "CO_FUTURE_UNICODE_LITERALS" in flags:
        result.enableUnicodeLiterals()
    if "CO_FUTURE_ABSOLUTE_IMPORT" in flags:
        result.enableAbsoluteImport()
    if "CO_FUTURE_PRINT_FUNCTION" in flags:
        result.enableFuturePrint()
    if "CO_FUTURE_BARRY_AS_BDFL" in flags:
        result.enableBarry()
    if "CO_FUTURE_GENERATOR_STOP" in flags:
        result.enableGeneratorStop()
    # Check if we are going to give similar results than what we got.
    assert tuple(result.asFlags()) == tuple(flags), (result, result.asFlags(), flags)
    return result