Update check_mem.py

pull request test