def report_memory(i=<NUM_LIT:0>):  
pid = os.getpid()<EOL>if sys.platform=='<STR_LIT>':<EOL><INDENT>a2 = os.popen('<STR_LIT>' % pid).readlines()<EOL>mem = int(a2[-<NUM_LIT:1>].strip())<EOL><DEDENT>elif sys.platform.startswith('<STR_LIT>'):<EOL><INDENT>a2 = os.popen('<STR_LIT>' % pid).readlines()<EOL>mem = int(a2[<NUM_LIT:1>].split()[<NUM_LIT:1>])<EOL><DEDENT>elif sys.platform.startswith('<STR_LIT>'):<EOL><INDENT>a2 = os.popen('<STR_LIT>' % pid).readlines()<EOL>mem = int(a2[<NUM_LIT:1>].split()[<NUM_LIT:0>])<EOL><DEDENT>return mem<EOL>
return the memory consumed by process