code: def get_git_version(runner=None):
      """Return version of available git"""
      runner = runner or GitRunner()
      return runner.run(
          "git version".split(), protocol=StdOutErrCapture
      )["stdout"].split()[2]
  
imports: import json
  import logging
  import os
  import re
  import threading
  import warnings
  from collections import namedtuple
  from fasteners import InterProcessLock
  from functools import lru_cache, wraps
  from pathlib import Path
  import datalad
  from datalad.consts import DATASET_CONFIG_FILE
  from datalad.runner import CommandError, GitRunner, KillOutput, StdOutErrCapture
  from datalad.utils import getpwd, on_windows
label_desc: Use image node_id 1 for calling a global function with example usage: get_git_version(runner) and returns: runner