code: def get_git_relative_path(file: Union[str, Path]) -> str:
      """Finds the relative path of the file to the git root."""
      if not check_github_repository():
          raise ValueError("Not a GitHub repository.")
      abs_path = Path(file).absolute()
      repository_path = execute_git_command(
          ["rev-parse", "--show-toplevel"]
      )
      return str(abs_path.relative_to(repository_path))
  
file_path: pytorch-lightning/src/lightning/app/utilities/git.py
imports: import subprocess
  from pathlib import Path
  from typing import List, Union
label_desc: Use image node_id 4 for calling a global function with example usage: get_git_relative_path(file) and returns: str