code: def check_for_existing_boost_build_jam(t):
      """
        This test depends on no boost-build.jam file existing in any of the
      folders along the current folder's path. If it does exist, not only would
      this test fail but it could point to a completely wrong Boost Build
      installation, thus causing headaches when attempting to diagnose the
      problem. That is why we explicitly check for this scenario.
  
      """
      problem = find_up_to_root(t.workdir, "boost-build.jam")
      if problem:
          BoostBuild.annotation(
              "misconfiguration",
              """\
  This test expects to be run from a folder with no 'boost-build.jam' file in any
  of the folders along its path.
  
  Working folder:
    '%s'
  
  Problematic boost-build.jam found at:
    '%s'
  
  Please remove this file or change the test's working folder and rerun the test.
  """
              % (t.workdir, problem),
          )
          t.fail_test(1, dump_stdio=False, dump_stack=False)
  
imports: import BoostBuild
  import os.path
  import re
label_desc: Use image node_id 1 for calling a global function with example usage: check_for_existing_boost_build_jam(t) without return types