code: def under_git():
      return (
          subprocess.run(
              ["git", "rev-parse", "HEAD"],
              stdout=subprocess.DEVNULL,
              stderr=subprocess.DEVNULL,
          ).returncode
          == 0
      )
  
imports: import re
  import os
  import argparse
  from itertools import chain
  import logging
  import sys
  import subprocess
label_desc: Use image node_id 10 for calling a global function with example usage: under_git() and returns: unknown