code: def _get_git_repo_root() -> Path:
      try:
          where = subprocess.run(
              ["git", "rev-parse", "--show-toplevel"],
              check=True,
              timeout=10,
              capture_output=True,
              text=True,
              encoding="utf-8",
          ).stdout.strip()
      except Exception:  # pragma: no cover
          return Path().absolute().parents[-1]
      else:
          return Path(where)
  
imports: import functools
  import os
  import subprocess
  import sys
  import types
  from collections import defaultdict
  from functools import lru_cache, reduce
  from os import sep
  from pathlib import Path
  from typing import TYPE_CHECKING, Dict, List, Optional, Set, Tuple
  from hypothesis._settings import Phase, Verbosity
  from hypothesis.internal.escalation import is_hypothesis_file
label_desc: Use image node_id 5 for calling a global function with example usage: _get_git_repo_root() and returns: Path, Path