code: def test_repeated_ids_for_different_projects():
      t = BoostBuild.Tester()
  
      t.write("a/jamfile.jam", "")
      t.write("jamroot.jam", "project foo ; use-project foo : a ;")
      t.run_build_system(status=1)
      t.expect_output_lines(
          """\
  error: Attempt to redeclare already registered project id '/foo'.
  error: Original project:
  error:     Name: Jamfile<*>
  error:     Module: Jamfile<*>
  error:     Main id: /foo
  error:     File: jamroot.jam
  error:     Location: .
  error: New project:
  error:     Module: Jamfile<*>
  error:     File: a*jamfile.jam
  error:     Location: a"""
      )
  
      t.write("jamroot.jam", "use-project foo : a ; project foo ;")
      t.run_build_system(status=1)
      t.expect_output_lines(
          """\
  error: Attempt to redeclare already registered project id '/foo'.
  error: Original project:
  error:     Name: Jamfile<*>
  error:     Module: Jamfile<*>
  error:     Main id: /foo
  error:     File: jamroot.jam
  error:     Location: .
  error: New project:
  error:     Module: Jamfile<*>
  error:     File: a*jamfile.jam
  error:     Location: a"""
      )
  
      t.write(
          "jamroot.jam",
          """\
  import modules ;
  import project ;
  modules.call-in [ project.load a ] : project foo ;
  project foo ;
  """,
      )
      t.run_build_system(status=1)
      t.expect_output_lines(
          """\
  error: at jamroot.jam:4
  error: Attempt to redeclare already registered project id '/foo'.
  error: Original project:
  error:     Name: Jamfile<*>
  error:     Module: Jamfile<*>
  error:     Main id: /foo
  error:     File: a*jamfile.jam
  error:     Location: a
  error: New project:
  error:     Module: Jamfile<*>
  error:     File: jamroot.jam
  error:     Location: ."""
      )
  
      t.cleanup()
  
imports: import BoostBuild
  import sys
label_desc: Use image node_id 3 for calling a global function with example usage: test_repeated_ids_for_different_projects() without return types