def METHOD_NAME(dut, db, cmd_list, skip_error_check=False):
    """multi executes a list of redis commands within MULTI/EXEC
    transaction. Either all of the commands or none are processed.
    """
    tmp_file = tempfile.NamedTemporaryFile(mode='w+t', prefix='multi_')
    tmp_file.write("multi\n" + "\n".join(cmd_list) + "\nexec")
    tmp_file.flush()
    st.upload_file_to_dut(dut, tmp_file.name, tmp_file.name)
    cmd = 'redis-cli -p {} -n {} -x < {} | tee'.format(port(db), id(db), tmp_file.name)
    return st.config(dut, cmd, skip_error_check=skip_error_check)