code: def has_uncommitted_files() -> bool:
      """Checks if user has uncommited files in local repository.
  
      If there are uncommited files, then show a prompt indicating that uncommited files exist locally.
  
      """
      files = execute_git_command(["update-index", "--refresh"])
      return bool(files)
  
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 6 for calling a global function with example usage: has_uncommitted_files() and returns: bool