code: def add(self, start, end, label, midi=None):
      start = float(start)
      end = float(end)
      if self.start < 0 or self.start > start:
          self.start = start
      if self.end < end:
          self.end = end
      if midi is None:
          self.segs.append((start, end, label))
      else:
          self.segs.append((start, end, label, midi))
  
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