code: def view_examples(
      log_path_or_paths: Union[str, List[str]],
      metrics: Optional[List[str]] = None,
      query: str = "",
      page_sz: int = DEFAULT_PAGE_SIZE,
      page_no: int = DEFAULT_PAGE_NO,
      sorting: VizSeqSortingType = VizSeqSortingType.original,
      need_g_translate: bool = False,
      disable_alignment: bool = False,
  ):
      sources, references, hypothesis = _get_data(log_path_or_paths)
      return _view_examples(
          sources,
          references,
          hypothesis,
          metrics,
          query,
          page_sz=page_sz,
          page_no=page_no,
          sorting=sorting,
          need_g_translate=need_g_translate,
          disable_alignment=disable_alignment,
      )
  
file_path: vizseq/vizseq/ipynb/fairseq_viz.py
imports: import os.path
  from collections import Counter
  from typing import List, Optional, Union
  from vizseq.ipynb.core import view_examples, view_stats, view_n_grams, view_scores
  from vizseq._view import DEFAULT_PAGE_SIZE, DEFAULT_PAGE_NO, VizSeqSortingType
label_desc: Use image node_id 2 for calling a global function with example usage: view_examples(log_path_or_paths, metrics, query, page_sz, page_no, sorting, need_g_translate, disable_alignment) and returns: _view_examples