def METHOD_NAME(str: str):
    if str == "SNAPPY":
        return CompressionCodec.SNAPPY
    elif str == "GZIP":
        return CompressionCodec.GZIP
    elif str == "ZSTD":
        return CompressionCodec.ZSTD
    return CompressionCodec.UNCOMPRESSED