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))
  
imports: import argparse
  import math
  import os
  import sys
  import music21
  import numpy
  from typeguard import check_argument_types
  from espnet2.fileio.read_text import read_2columns_text
  from espnet2.fileio.score_scp import NOTE, SingingScoreWriter
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