code: def make_commit_link(commit_hash, remote, text=None):
      if text is None:
          text = commit_hash[:8]
      if remote.startswith("https://github.com/"):
          if remote.endswith(".git"):
              remote = remote[:-4]
          href = remote + "/commit/" + commit_hash
          return f'<a href="{href}" target="_blank">{text}</a>'
      else:
          return text
  
imports: import json
  import os
  import threading
  import time
  from datetime import datetime, timezone
  import git
  import gradio
  import html
  import shutil
  import errno
  from modules import extensions, shared, paths, config_states, errors, restart
  from modules.paths_internal import config_states_dir
  from modules.call_queue import wrap_gradio_gpu_call
label_desc: Use image node_id 6 for calling a global function with example usage: make_commit_link(commit_hash, remote, text) and returns: str, href, str, text, str, text