I was trying to convert for-loop to multiprocessing.Pool().map function. Here, I have created an empty csr_matrix and assigning values based on an
multiprocessing.Pool().map
csr_matrix