<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_bad_link(node):
 """ Helper to determine if the node is link that is useless. We've hit articles with many multiple links that should be cleaned out because they're just there to pollute the space. See tests for examples. """

    if node.tag != "a":
        return False

    name = node.get("name")
    href = node.get("href")
    if name and not href:
        return True

    if href:
        href_parts = href.split("#")
        if len(href_parts) == 2 and len(href_parts[1]) > 25:
            return True

    return False