def METHOD_NAME(node, vm, test):
    """"
    get numa node size from HMP info command
    :param node: numa node number
    :param vm: vm object
    :param test: qemu test object
    """
    output = vm.monitor.info("numa").splitlines()
    for numa_info in output:
        if "node " + str(node) + " size: " in numa_info:
            node_size = numa_info.split("node " + str(node) + " size: ").pop().split(" ")[0]
            if node_size is None:
                test.fail("Error, unexpected numa node size info at node %d" % node)
            error_context.context("node %d size: %s" % (node, node_size), test.log.debug)
    return int(node_size)