I am getting stream of data from an iterator and I would like to dump that to a file. I am doing that as below for now
data_stream = range(100) # for simplicit