def parse_tbody_tr(table_html):
    """
    Return the list of tbody row elements from the parsed table element.
    HTML5 table bodies consist of either 0 or more <tbody> elements (which
    only contain <tr> elements) or 0 or more <tr> elements. This method
    checks for both structures.
    Parameters
    ----------
    table : a table element that contains row elements.
    Returns
    -------
    list of node-like
        These are the <tr> row elements of a table.
    """
    from_tbody = table_html.select("tbody tr")
    from_root = table_html.find_all("tr", recursive=False)
    # HTML spec: at most one of these lists has content
    return from_tbody + from_root