code: def _get_root() -> Path:
      root = Path(__file__).parent.parent.absolute()
      assert (
          root / "pyproject.toml"
      ).exists(), f"Wrong root folder: {root}"
      return root
  
file_path: submitit/submitit/test_documentation.py
imports: import re
  import typing
  from pathlib import Path
  import submitit
label_desc: Use image node_id 1 for calling a global function with example usage: _get_root() and returns: root