def METHOD_NAME(pid, shell_job=False):
    cmd = [CRIU_NS, "dump", "-D", IMG_DIR, "-v4", "-t", str(pid),
           "--log-file", DUMP_LOG, "--criu-binary", CRIU_BIN]
    if shell_job:
        cmd.append("--shell-job")
    ret = subprocess.Popen(cmd).wait()
    return ret