code: def testSORTDuration():
      """
        Regression test making sure Boost Jam's SORT builtin rule does not get
      quadratic behaviour again in this use case.
  
      """
      t = BoostBuild.Tester(
          ["-ftest.jam", "-d1"],
          pass_toolset=False,
          use_test_config=False,
      )
  
      f = open(t.workpath("test.jam"), "w")
      print >> f, "data = "
      for i in range(0, 20000):
          if i % 2:
              print >> f, '"aaa"'
          else:
              print >> f, '"bbb"'
      print >> f, """;
  
  ECHO "starting up" ;
  sorted = [ SORT $(data) ] ;
  ECHO "done" ;
  NOCARE all ;
  """
      f.close()
  
      t.run_build_system(expected_duration=1)
      t.expect_output_lines("starting up")
      t.expect_output_lines("done")
  
      t.cleanup()
  
label_desc: Use image node_id 2 for calling a global function with example usage: testSORTDuration() without return types