code: def parse_remote(remote: str) -> Tuple[str, str]:
      """
      Get a GitHub (user, repo) pair out of a git remote
      """
      if remote.startswith("https://"):
          # Parse HTTP remote
          parts = remote.split("/")
          if len(parts) < 2:
              raise RuntimeError(f"Unable to parse remote '{remote}'")
          user, repo = parts[-2], parts[-1].replace(".git", "")
      else:
          # Parse SSH remote
          m = re.search(r":(.*)/(.*)\.git", remote)
          if m is None or len(m.groups()) != 2:
              raise RuntimeError(f"Unable to parse remote '{remote}'")
          user, repo = m.groups()
  
      user = os.getenv("DEBUG_USER", user)
      repo = os.getenv("DEBUG_REPO", repo)
      return user, repo
  
imports: import json
  import subprocess
  import re
  import os
  import base64
  import logging
  from urllib import request, error
  from typing import Dict, Tuple, Any, Optional, List
label_desc: Use image node_id 4 for calling a global function with example usage: parse_remote(remote) and returns: user,  repo