code: def test_args(self):
      args = self.parser.parse_args(
          ["onsets", ANNOTATIONS_PATH, DETECTIONS_PATH]
      )
      self.assertTrue(args.ann_dir is None)
      self.assertTrue(args.ann_suffix == ".onsets")
      self.assertTrue(args.combine == 0.03)
      self.assertTrue(args.delay == 0.0)
      self.assertTrue(args.det_dir is None)
      self.assertTrue(args.det_suffix == ".onsets.txt")
      self.assertTrue(args.eval == OnsetEvaluation)
      self.assertTrue(args.files == [ANNOTATIONS_PATH, DETECTIONS_PATH])
      self.assertTrue(args.ignore_non_existing is False)
      self.assertTrue(args.mean_eval == OnsetMeanEvaluation)
      # self.assertTrue(args.outfile == StringIO.StringIO)
      from madmom.evaluation import tostring
  
      self.assertTrue(args.output_formatter == tostring)
      self.assertTrue(args.quiet is False)
      self.assertTrue(args.sum_eval == OnsetSumEvaluation)
      self.assertTrue(args.verbose == 0)
      self.assertTrue(args.window == 0.025)
  
imports: from __future__ import absolute_import, division, print_function
  import math
  import unittest
  from madmom.evaluation.onsets import *
  from .None import ANNOTATIONS_PATH, DETECTIONS_PATH
label_desc: Use image node_id 2 for calling the TestAddParserFunction obj's underlying member method code with example usage: obj.test_args() without return types