code: def get_correct_marks(
      r: Union[List[int], List[str]], h: Union[List[int], List[str]]
  ) -> List[bool]:
      """Get correct marks by aligning the reference text with a hypothesis.
  
      This method considers only insertions and substitutions as incorrect marks.
      """
      return [
          a == b
          for a, b in zip(
              *(
                  texterrors.align_texts(
                      [str(rr) for rr in r],
                      [str(hh) for hh in h],
                      False,
                  )[:-1]
              )
          )
          if b != "<eps>"
      ]
  
file_path: NeMo/nemo/collections/asr/parts/utils/asr_confidence_benchmarking_utils.py
imports: import contextlib
  import copy
  import os
  from pathlib import Path
  from typing import List, Optional, Tuple, Union
  import numpy
  import texterrors
  import torch
  from omegaconf import open_dict
  from nemo.collections.asr.models import ASRModel, EncDecRNNTModel
  from nemo.collections.asr.parts.utils.confidence_metrics import auc_nt, auc_pr, auc_roc, auc_yc, ece, nce, save_confidence_hist, save_custom_confidence_curve, save_nt_curve, save_pr_curve, save_roc_curve
  from nemo.collections.asr.parts.utils.rnnt_utils import Hypothesis
label_desc: Use image node_id 1 for calling a global function with example usage: get_correct_marks(r, h) and returns: unknown