def _pickle_node(node):
    # vardata was added in revision 7592
    if _pickle_version and _pickle_version < 7592:
        return (node.name, node._modulename, node._is_bound)

    # varnodes can be declared dynamically (e.g. sometimes this is done to create shift sets)
    # and so extra varnode data needs to be persisted so the node can be re-created.
    vardata = None
    if isinstance(node, MDFVarNode):
        varnode = cython.declare(MDFVarNode)
        varnode = node
        vardata = {
            "default" : varnode._default_value,
            "categories" : varnode.categories,
        }
  
    return (node.name, node._modulename, node._is_bound, vardata)
Return a dict of hosts and named guests
dataset/ETHPy150Open manahl/mdf/mdf/ctx_pickle.py/_pickle_node--crossover with--dataset/ETHPy150Open saltstack/salt/salt/runners/lxc.py/find_guests