code: def ignore_link(link):
      patterns = [
          # Base pages
          "/rss.html",
          "/index.html",
          "/master.html",
          "/search.html",
          "/archive.html",
          "/py-modindex.html",
          # Other pages
          "/pages/home.html",
          "/apidocs/modules.html",
          "/apidocs/neupy.html",
          "/modules/generated/.+",
          # Pages that has collected information
          r"/page\d{1,}.html",
          r".*tags/.+\.html",
          r".*cheatsheet\.html",
          # Static files
          r".+(css|js|jpg|png)$",
          r"/_images/.+",
          r".*\.tar\.gz",
      ]
      uri = urlparse(link)
  
      for pattern in patterns:
          if re.match(pattern, uri.path):
              return True
  
          if uri.fragment in ("subpackages", "submodules"):
              return True
  
          if uri.fragment.endswith("-package"):
              return True
  
      return False
  
imports: import os
  import re
  import json
  import pickle
  import logging
  import argparse
  from textwrap import dedent
  from collections import defaultdict, namedtuple
  import nltk
  import numpy
  import scipy.sparse
  from six.moves.urllib.parse import urljoin, urlparse
  from pagerank import pagerank
  from webgraph import WebPageGraph, Link
  from htmltools import iter_html_files, ParseHTML
label_desc: Use image node_id 2 for calling a global function with example usage: ignore_link(link) and returns: False, True, True, True