def get_memory():
 import psutil
 return psutil.Process(os.getpid()).memory_info().rss

def get_memory ( ) : import psutil return psutil . Process ( os . getpid ( ) ) . memory_info ( ) . rss
simulate a function that returns system memory .