code: def edit_html_overflow(html_string: str) -> str:
      """
      Adds to overflow and display settings to the SVG header to visualize overflowing HTML renderings in the
      Semgrex streamlit app. Prevents Semgrex search tags from being cut off at the bottom of visualizations.
  
      The opening of each HTML string looks similar to this; we add to the end of the SVG header.
  
      <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:lang="en" id="fa9446a525de4862b233007f26dbbecb-0" class="displacy" width="850" height="242.0" direction="ltr" style="max-width: none; height: 242.0px; color: #000000; background: #ffffff; font-family: Arial; direction: ltr">
      <style> .bolded{font-weight: bold;} </style>
      <text class="displacy-token" fill="currentColor" text-anchor="middle" y="182.0">
          <tspan class="bolded" fill="#66CCEE" x="50">Banning</tspan>
  
         <tspan class="displacy-tag" dy="2em" fill="currentColor" x="50">VERB</tspan>
        <tspan class="displacy-word" dy="2em" fill="#66CCEE" x=50>Act.</tspan>
      </text>
  
      @param html_string: HTML of the result of running Semgrex search on a text
      @return: Edited HTML to visualize the dependencies even in the case of overflow.
      """
  
      BUFFER_LEN = 14  # length of 'direction: ltr"'
      editing_start_idx = find_nth(html_string, "direction: ltr", n=1)
      SVG_HEADER_ADDITION = "overflow: visible; display: block"
      return (
          html_string[:editing_start_idx]
          + "; "
          + SVG_HEADER_ADDITION
          + html_string[editing_start_idx + BUFFER_LEN :]
      )
  
imports: import os
  import argparse
  import stanza
  import sys
  from stanza.server.semgrex import Semgrex
  from stanza.models.common.constant import is_right_to_left
  import spacy
  from spacy import displacy
  from spacy.tokens import Doc
  from IPython.display import display, HTML
  import typing
  from typing import List, Tuple, Any
  from utils import find_nth, round_base
label_desc: Use image node_id 8 for calling a global function with example usage: edit_html_overflow(html_string) and returns: unknown