def create_root_with_source_tree(source_path, build_path):
    root = NodeWithBuild("", None)
    top = root.find_node(source_path)
    if top is None:
        raise IOError("Invalid source_path: %r" % source_path)
    build = root.make_node(build_path)

    node_context = _NodeContext()
    node_context.srcnode = top
    node_context.bldnode = build
    NodeWithBuild._ctx = node_context

    return root
Apply the filter to the given value.
dataset/ETHPy150Open cournape/Bento/bento/core/node.py/create_root_with_source_tree--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/datastore/datastore_query.py/_SinglePropertyFilter._apply_to_value