code: def git_fix_workspace(dir, name):
      run(
          f'"{git}" -C "{dir}" fetch --refetch --no-auto-gc',
          f"Fetching all contents for {name}",
          f"Couldn't fetch {name}",
          live=True,
      )
      run(
          f'"{git}" -C "{dir}" gc --aggressive --prune=now',
          f"Pruning {name}",
          f"Couldn't prune {name}",
          live=True,
      )
      return
  
imports: import logging
  import re
  import subprocess
  import os
  import shutil
  import sys
  import importlib.util
  import importlib.metadata
  import platform
  import json
  from functools import lru_cache
  from modules import cmd_args, errors
  from modules.paths_internal import script_path, extensions_dir
  from modules.timer import startup_timer
  from modules import logging_config
label_desc: Use image node_id 9 for calling a global function with example usage: git_fix_workspace(dir, name) without return types