human
I wrote the below code

    def find(node, url):
        '\n                                Find    node    in    course    tree    for    url.\n                                '
        if (node.location.to_deprecated_string() == url):
            return node
        for child in node.get_children():
            found = find(child, url)
            if found:
                return found
        return None
    unit = find(course, url)
    if (unit is None):
        raise DashboardError(_("Couldn't    find    module    for    url:    {0}").format(url))
    return unit

What's a good function header?

What is a Python code to find    node    in    course    tree    for    url?
assistant
#Here is Python code to find    node    in    course    tree    for    url.

def find_unit(course, url):