code: def test_tutorial_working_directory_original_cwd(
      tmpdir: Path,
  ) -> None:
      cmd = [
          "examples/tutorials/basic/running_your_hydra_app/3_working_directory/original_cwd.py",
          f"hydra.run.dir={tmpdir}",
          "hydra.job.chdir=True",
      ]
      result, _err = run_python_script(cmd)
      assert (
          result.strip()
          == dedent(
              f"""
              Current working directory : {tmpdir}
              Orig working directory    : {os.getcwd()}
              to_absolute_path('foo')   : {Path(os.getcwd()) / "foo"}
              to_absolute_path('/foo')  : {Path("/foo").resolve()}
              """
          ).strip()
      )
  
imports: import os
  import re
  import subprocess
  from pathlib import Path
  from textwrap import dedent
  from typing import Any, List
  from _pytest.python_api import RaisesContext
  from omegaconf import DictConfig, OmegaConf
  from pytest import mark, raises
  from hydra.test_utils.test_utils import TSweepRunner, TTaskRunner, chdir_hydra_root, run_python_script, verify_dir_outputs
label_desc: Use image node_id 3 for calling a global function with example usage: test_tutorial_working_directory_original_cwd(tmpdir) without return types