code: def _run_launcher(launcher_path, prefix):
      with launcher_path.open("w") as launcher_f:
          launcher_f.write(
              textwrap.dedent(
                  r"""
              from garage import wrap_experiment
  
              @wrap_experiment(prefix='{}')
              def test_exp(ctxt=None):
                  print(ctxt.snapshot_dir)
  
              test_exp()""".format(
                      prefix
                  )
              )
          )
      output = (
          (
              subprocess.check_output(
                  (sys.executable, str(launcher_path)),
                  stderr=subprocess.STDOUT,
              )
          )
          .decode("utf-8")
          .strip()
          .split("\n")
      )
      snapshot_dir = output[-1]
      return snapshot_dir, output
  
imports: import os
  import pathlib
  import shutil
  import subprocess
  import sys
  import tempfile
  import textwrap
  import pytest
  from garage.experiment.experiment import wrap_experiment
label_desc: Use image node_id 3 for calling a global function with example usage: _run_launcher(launcher_path, prefix) and returns: snapshot_dir,  output