def table_html(html, id_, multi=False):
    """Extracts a desired table or tables from the webpage.
    Args:
        html: A BeautifulSoup object representing the webpage.
        id_: A string of a target element html ID.
        multi: A boolean representing how many tables should be searched.
    Returns:
        If multi is False, a BeautifulSoup object representing the first
        table found. Otherwise, a list of BeautifulSoup objects of all the
        tables found in the section.
    """
    search = html.find('div', id=id_).find_next_sibling('div')
    if multi:
        return search.find_all('table')
    return search.find('table')