code: def choose_example(self):
      st.header("Document")
      if st.button("Select a random document"):
          dct_idx = random.randint(a=0, b=self.num_docs - 1)
      else:
          dct_idx = 0
      idx = st.number_input(
          f"Select a document among the first {self.num_docs} ones",
          min_value=0,
          max_value=self.num_docs - 1,
          value=dct_idx,
          step=1,
          help=f"Index between 0 and {self.num_docs-1}",
      )
      self.current_example = self.examples[idx]
  
file_path: hf-obelics/obelics/visualization/global_visualization.py
imports: import os
  import pathlib
  import random
  import pandas
  import streamlit
  from datasets import load_dataset
  from jinja2 import Template
  from obelics.processors import DOMTreeSimplificator, PreExtractionSimplificator, TextMediaPairsExtractor
  from obelics.utils import make_selectolax_tree
label_desc: Use image node_id 4 for calling the Visualization obj's underlying member method code with example usage: obj.choose_example() without return types