def METHOD_NAME(text, nav, child_identifier):
    nav_list = list()
    soup = BeautifulSoup(text, 'html.parser')
    ultag = soup.find('ul', {'class': nav})
    for litag in ultag.find_all('li', {'class': child_identifier}):
        children = litag.find('ul')
        a = litag.find('a', href=True)
        nav_list.append(
            {'text': a.text,
             'href': a.attrs['href'],
             'children': get_nav_children(children)}
        )
    return nav_list