code: def maybe_get_next_page_path(
      response: requests.Response,
  ) -> str | None:
      """
      If a response is paginated, get the url for the next page.
      """
      link_regex = re.compile(r'<([^>]*)>;\s*rel="([\w]*)\"')
      link_headers = response.headers.get("Link")
      next_page_path = None
      if link_headers:
          links = {}
          matched = link_regex.findall(link_headers)
          for match in matched:
              links[match[1]] = match[0]
          next_page_path = links.get("next", None)
  
      return next_page_path
  
imports: from __future__ import annotations
  import argparse
  import contextlib
  import html
  import io
  import os
  import re
  import shelve
  import sys
  import zipfile
  from collections.abc import Iterable, Iterator
  from concurrent.futures import ProcessPoolExecutor
  from typing import Any, cast
  import altair
  import altair_saver
  import junitparser
  import pandas
  import requests
  from requests.adapters import HTTPAdapter
  from urllib3.util.retry import Retry
label_desc: Use image node_id 4 for calling a global function with example usage: maybe_get_next_page_path(response) and returns: next_page_path