convert batch_write_item