code: def parse_stm_file(stm_file):
      r"""
      Parses an STM file at ``stm_file`` into a list of :class:`STMSegment`.
      """
      stm_segments = []
      with codecs.open(stm_file, encoding="utf-8") as stm_lines:
          for stm_line in stm_lines:
              stmSegment = STMSegment(stm_line)
              if (
                  not "ignore_time_segment_in_scoring"
                  == stmSegment.transcript
              ):
                  stm_segments.append(stmSegment)
      return stm_segments
  
file_path: DeepSpeech/training/deepspeech_training/util/stm.py
imports: import codecs
  import unicodedata
label_desc: Use image node_id 1 for calling a global function with example usage: parse_stm_file(stm_file) and returns: stm_segments