I want to check memory consumption of my python code and have therefore added the following rows in the code:
import resource print(resource.getrusage(resource.RU