code: def test_raw_to_shell_fallback_nt():
      t = BoostBuild.Tester(
          ["-d1", "-d+4"], pass_toolset=0, use_test_config=False
      )
  
      cmd_prefix = "%s -c print(" % executable
      cmd_suffix = ")"
  
      t.write(
          "file_multiline.jam",
          """\
  actions do_multiline
  {
      echo one
  
  
      echo two
  }
  JAMSHELL = % ;
  do_multiline all ;
  """,
      )
      t.run_build_system(["-ffile_multiline.jam"])
      t.expect_output_lines("do_multiline all")
      t.expect_output_lines("one")
      t.expect_output_lines("two")
      t.expect_output_lines("Executing raw command directly", False)
      t.expect_output_lines(
          "Executing using a command file and the shell: "
          "cmd.exe /Q/C"
      )
  
      t.write(
          "file_redirect.jam",
          """\
  actions do_redirect { echo one > two.txt }
  JAMSHELL = % ;
  do_redirect all ;
  """,
      )
      t.run_build_system(["-ffile_redirect.jam"])
      t.expect_output_lines("do_redirect all")
      t.expect_output_lines("one", False)
      t.expect_output_lines("Executing raw command directly", False)
      t.expect_output_lines(
          "Executing using a command file and the shell: "
          "cmd.exe /Q/C"
      )
      t.expect_addition("two.txt")
  
      t.write(
          "file_pipe.jam",
          """\
  actions do_pipe
  {
      echo one | echo two
  }
  JAMSHELL = % ;
  do_pipe all ;
  """,
      )
      t.run_build_system(["-ffile_pipe.jam"])
      t.expect_output_lines("do_pipe all")
      t.expect_output_lines("one*", False)
      t.expect_output_lines("two")
      t.expect_output_lines("Executing raw command directly", False)
      t.expect_output_lines(
          "Executing using a command file and the shell: "
          "cmd.exe /Q/C"
      )
  
      t.write(
          "file_single_quoted.jam",
          """\
  actions do_single_quoted { %s'5>10'%s }
  JAMSHELL = %% ;
  do_single_quoted all ;
  """
          % (cmd_prefix, cmd_suffix),
      )
      t.run_build_system(["-ffile_single_quoted.jam"])
      t.expect_output_lines("do_single_quoted all")
      t.expect_output_lines("5>10")
      t.expect_output_lines("Executing raw command directly")
      t.expect_output_lines(
          "Executing using a command file and the shell: "
          "cmd.exe /Q/C",
          False,
      )
      t.expect_nothing_more()
  
      t.write(
          "file_double_quoted.jam",
          """\
  actions do_double_quoted { %s"5>10"%s }
  JAMSHELL = %% ;
  do_double_quoted all ;
  """
          % (cmd_prefix, cmd_suffix),
      )
      t.run_build_system(["-ffile_double_quoted.jam"])
      t.expect_output_lines("do_double_quoted all")
      # The difference between this example and the similar previous one using
      # single instead of double quotes stems from how the used Python executable
      # parses the command-line string received from Windows.
      t.expect_output_lines("False")
      t.expect_output_lines("Executing raw command directly")
      t.expect_output_lines(
          "Executing using a command file and the shell: "
          "cmd.exe /Q/C",
          False,
      )
      t.expect_nothing_more()
  
      t.write(
          "file_escaped_quote.jam",
          """\
  actions do_escaped_quote { %s\\"5>10\\"%s }
  JAMSHELL = %% ;
  do_escaped_quote all ;
  """
          % (cmd_prefix, cmd_suffix),
      )
      t.run_build_system(["-ffile_escaped_quote.jam"])
      t.expect_output_lines("do_escaped_quote all")
      t.expect_output_lines("5>10")
      t.expect_output_lines("Executing raw command directly", False)
      t.expect_output_lines(
          "Executing using a command file and the shell: "
          "cmd.exe /Q/C"
      )
      t.expect_nothing_more()
  
      t.cleanup()
  
imports: import BoostBuild
  import os
  import re
  import sys
label_desc: Use image node_id 4 for calling a global function with example usage: test_raw_to_shell_fallback_nt() without return types