code: def is_bad_link(node):
      
      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
docs: 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.