def METHOD_NAME(tree, prefixlen):
    """Returns a map of subtrees with length prefixlen. Generated from
    tree"""
    keys = extract_subnets_with_prefix_length(tree, prefixlen)
    result = {}
    for key in keys:
        result[key] = get_subtree(tree, key)
    return result