code: def replace_sys_header(
      text,  # pylint: disable=W0621
      stem,  # pylint: disable=W0621
  ):
      """
      Replace the `sys.path` header for example notebooks
      """
      output = []
  
      for chunk in PAT_HEADER.split(text):
          m_iframe = PAT_HEADER.match(chunk)
  
          if m_iframe:
              header = """
  !!! note
      To run this notebook in JupyterLab, load [`examples/{stem}.ipynb`](https://github.com/DerwenAI/pytextrank/blob/main/examples/{stem}.ipynb)
  
  """.format(
                  stem=stem
              )
  
              output.append(header)
          else:
              output.append(chunk)
  
      return "\n".join(output)
  
file_path: pytextrank/bin/vis_doc.py
imports: from selenium import webdriver
  from selenium.webdriver.chrome.options import Options
  import os
  import pathlib
  import re
  import sys
  import time
label_desc: Use image node_id 4 for calling a global function with example usage: replace_sys_header(text, stem) and returns: str