def METHOD_NAME(test_obj):
    """
    Check memory share setting in qemu_monitor_command result
    :param test_obj: NumaTest object
    """
    qemu_monitor_cmd = test_obj.params.get('qemu_monitor_cmd')
    qemu_monitor_option = test_obj.params.get('qemu_monitor_option')
    pattern_share_in_qmp_output = test_obj.params.get('pattern_share_in_qmp_output')
    test_obj.virsh_dargs.update({'ignore_status': False})
    ret = virsh.qemu_monitor_command(test_obj.vm.name,
                                     qemu_monitor_cmd,
                                     qemu_monitor_option,
                                     **test_obj.virsh_dargs,
                                     ).stdout_text.strip()
    if not re.search(pattern_share_in_qmp_output,
                     ret[ret.index("memory backend: ram-node0"):]):
        test_obj.test.fail("Expect '%s' exist, "
                           "but not found" % pattern_share_in_qmp_output)
    else:
        test_obj.test.log.debug("Step: check '%s' PASS", pattern_share_in_qmp_output)