code: def test_glob(files, glob, expected, setup=""):
      t = BoostBuild.Tester(["-ffile.jam"], pass_toolset=0)
      t.write(
          "file.jam",
          setup
          + """
      for local p in [ SORT %s ]
      {
          ECHO $(p) ;
      }
      UPDATE ;
      """
          % glob,
      )
      for f in files:
          t.write(f, "")
      # convert / into \ on windows
      expected = [os.path.join(*p.split("/")) for p in expected]
      expected.sort()
      t.run_build_system(stdout="\n".join(expected + [""]))
      t.cleanup()
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_glob(files, glob, expected, setup) without return types