code: def get_memory_usage():
      
      process = psutil.Process(os.getpid())
      mem = process.memory_info().rss
      return mem / (1024 * 1024)
docs: Gets RAM memory usage
  
      :return: MB of memory used by this process