code: def test_wrap_experiment_launcher_outside_git():
      prefix = "wrap_exp_test_launcher_outside_git"
      exp_path = pathlib.Path(os.getcwd(), "data/local", prefix)
      _hard_rmtree(exp_path)
      expected_path = exp_path / "test_exp"
  
      # Because this is testing a file outside of a git repo, we need to make
      # ourselves a launcher script outside of any git repo.
      with tempfile.TemporaryDirectory() as launcher_dir:
          launcher_path = pathlib.Path(launcher_dir) / "run_exp.py"
          snapshot_dir, _ = _run_launcher(launcher_path, prefix)
          assert os.path.samefile(str(expected_path), str(snapshot_dir))
  
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 7 for calling a global function with example usage: test_wrap_experiment_launcher_outside_git() without return types