class_docstr: Task object for CTC segmentation.
  
  When formatted with str(·), this object returns
  results in a kaldi-style segments file formatting.
  The human-readable output can be configured with
  the printing options.
  
  Properties:
      text: Utterance texts, separated by line. But without the utterance
          name at the beginning of the line (as in kaldi-style text).
      ground_truth_mat: Ground truth matrix (CTC segmentation).
      utt_begin_indices: Utterance separator for the Ground truth matrix.
      timings: Time marks of the corresponding chars.
      state_list: Estimated alignment of chars/tokens.
      segments: Calculated segments as: (start, end, confidence score).
      config: CTC Segmentation configuration object.
      name: Name of aligned audio file (Optional). If given, name is
          considered when generating the text.
      utt_ids: The list of utterance names (Optional). This list should
          have the same length as the number of utterances.
      lpz: CTC posterior log probabilities (Optional).
  
  Properties for printing:
      print_confidence_score: Includes the confidence score.
      print_utterance_text: Includes utterance text.
docstr: Update properties.
  
  Args:
      **kwargs: Key-value dict that contains all properties
          with their new values. Unknown properties are ignored.
docstr_tok: ["Update","properties",".","Args",":","*","*","kwargs",":","Key-value","dict","that","contains","all","properties","with","their","new","values",".","Unknown","properties","are","ignored","."]
code: def set(self, **kwargs):
      """Update properties.
  
      Args:
          **kwargs: Key-value dict that contains all properties
              with their new values. Unknown properties are ignored.
      """
      for key in kwargs:
          if (
              not key.startswith("_")
              and hasattr(self, key)
              and kwargs[key] is not None
          ):
              setattr(self, key, kwargs[key])
  
imports: import argparse
  import logging
  import sys
  from pathlib import Path
  from typing import List, Optional, TextIO, Union
  import numpy
  import soundfile
  import torch
  from ctc_segmentation import CtcSegmentationParameters, ctc_segmentation, determine_utterance_segments, prepare_text, prepare_token_list
  from typeguard import check_argument_types, check_return_type
  from espnet2.tasks.asr import ASRTask
  from espnet2.torch_utils.device_funcs import to_device
  from espnet2.utils import config_argparse
  from espnet2.utils.types import str2bool, str_or_none
  from espnet.utils.cli_utils import get_commandline_args
label_desc: Use image node_id 2 for calling the CTCSegmentationTask obj's underlying member method code with example usage: obj.set() without return types