code: def add(self, start, end, label, midi):
      start = float(start)
      end = float(end)
      if self.start < 0 or self.start > start:
          self.start = start
      if self.end < end:
          self.end = end
      self.segs.append((start, end, label, midi))
  
file_path: espnet/egs2/zh_openslr38/asr1/pyscripts/utils/prep_segments_from_xml.py
imports: import argparse
  import math
  import os
  import sys
  import music21
  from espnet2.fileio.score_scp import SingingScoreWriter, XMLReader
label_desc: Use image node_id 2 for calling the SegInfo obj's underlying member method code with example usage: obj.add(start, end, label, midi) without return types