def METHOD_NAME():
    """
    Check expected memory value in qemu cmd line.
    """
    expected_str = ""
    if mem_config == "without_maxmemory":
        if libvirt_version.version_compare(9, 5, 0):
            expected_str = r"-m size=%sk" % mem_value
        else:
            expected_str = r"-m %s" % str(int(mem_value/1024))
    elif mem_config == "with_numa":
        expected_str = r"-m size=%dk,slots=%d,maxmem=%dk" % (
            int(mem_value), max_mem_slots, int(max_mem))
    libvirt.check_qemu_cmd_line(expected_str)