code: def get_extension_dirname_from_url(url):
      *parts, last_part = url.split("/")
      return normalize_git_url(last_part)
  
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 10 for calling a global function with example usage: get_extension_dirname_from_url(url) and returns: normalize_git_url