def find_subsections(section: Element) -> List[nodes.section]:
    'Return a list of subsections for the given ``section``.'
    result = []
    for child in section:
        if isinstance(child, nodes.section):
            result.append(child)
            continue
        elif isinstance(child, nodes.Element):
            result.extend(find_subsections(child))
    return result
Return a list of subsections for the given ``section``.
def find_subsections(section: Element) -> List[nodes.section]:
    
    result = []
    for child in section:
        if isinstance(child, nodes.section):
            result.append(child)
            continue
        elif isinstance(child, nodes.Element):
            result.extend(find_subsections(child))
    return result