def is_last_li(li, meta_data, current_numId):
if not is_li(li, meta_data):<EOL><INDENT>return False<EOL><DEDENT>w_namespace = get_namespace(li, '<STR_LIT:w>')<EOL>next_el = li<EOL>while True:<EOL><INDENT>if next_el is None:<EOL><INDENT>return True<EOL><DEDENT>next_el = next_el.getnext()<EOL>if not is_li(next_el, meta_data):<EOL><INDENT>continue<EOL><DEDENT>new_numId = get_numId(next_el, w_namespace)<EOL>if current_numId != new_numId:<EOL><INDENT>return True<EOL><DEDENT>return False<EOL><DEDENT>
Determine if ``li`` is the last list item for a given list