code: def check_github_repository(cwd=None) -> bool:
      """Checks if the active directory is a GitHub repository."""
      github_repository = execute_git_command(
          ["config", "--get", "remote.origin.url"], cwd=cwd
      )
  
      if not github_repository or "github.com" not in github_repository:
          return False
      return True
  
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 3 for calling a global function with example usage: check_github_repository(cwd) and returns: True, False