code: def _getExternalEnv(name):
      toolsetName = "__myDummyToolset__"
  
      t = BoostBuild.Tester(
          ["toolset=%s" % toolsetName],
          pass_toolset=False,
          use_test_config=False,
      )
      try:
          #   Prepare a dummy toolset so we do not get errors in case the default
          # one is not found.
          t.write(
              toolsetName + ".jam",
              """\
  import feature ;
  feature.extend toolset : %s ;
  rule init ( ) { }
  """
              % toolsetName,
          )
  
          # Python version of the same dummy toolset.
          t.write(
              toolsetName + ".py",
              """\
  from b2.build import feature
  feature.extend('toolset', ['%s'])
  def init(): pass
  """
              % toolsetName,
          )
  
          t.write(
              "jamroot.jam",
              """\
  import os ;
  local names = [ MATCH ^---var-name---=(.*) : [ modules.peek : ARGV ] ] ;
  for x in $(names)
  {
      value = [ os.environ $(x) ] ;
      ECHO "###" $(x): '$(value)' "###" ;
  }
  """,
          )
  
          t.run_build_system(["---var-name---=%s" % name])
          m = re.search(
              "^### %s: '(.*)' ###$" % name, t.stdout(), re.MULTILINE
          )
          if m:
              return m.group(1)
      finally:
          t.cleanup()
  
file_path: turicreate/src/external/boost/boost_1_68_0/tools/build/test/configuration.py
imports: import BoostBuild
  import TestCmd
  import os
  import os.path
  import re
label_desc: Use image node_id 5 for calling a global function with example usage: _getExternalEnv(name) and returns: m