code: def get_window_input() -> Tuple[bool, int, int]:
      """
      Allows user to specify a specific window of Semgrex hits to visualize. Works similar to Python splicing.
  
      @return: A tuple containing a bool representing whether or not the user wants to visualize a splice of
      the visualizations, and two ints representing the start and end indices of the splice.
      """
      show_window = st.checkbox(
          "Visualize a specific window of Semgrex search hits?",
          help="""If you want to visualize all search results, leave this unmarked.""",
      )
      start_window, end_window = None, None
      if show_window:
          start_window = st.number_input(
              "Which search hit should visualizations start from?",
              help="""If you want to visualize the first 10 search results, set this to 0.""",
              min_value=0,
          )
          end_window = st.number_input(
              "Which search hit should visualizations stop on?",
              help="""If you want to visualize the first 10 search results, set this to 11.
                                       The 11th result will NOT be displayed.""",
              value=11,
              min_value=start_window + 1,
          )
      return show_window, start_window, end_window
  
file_path: stanza/stanza/utils/visualization/semgrex_app.py
imports: import streamlit
  import streamlit.components.v1
  from semgrex_visualizer import visualize_search_str
  from semgrex_visualizer import edit_html_overflow
  from io import StringIO
  import os
  import stanza
  import typing
  from typing import List, Tuple, Any
  import argparse
label_desc: Use image node_id 3 for calling a global function with example usage: get_window_input() and returns: show_window,  start_window,  end_window