code: def git_current_branch() -> Text:
      """Returns the current git branch of the local repo."""
  
      try:
          output = check_output(
              ["git", "symbolic-ref", "--short", "HEAD"]
          )
          return output.decode().strip()
      except CalledProcessError:
          # e.g. we are in detached head state
          return "main"
  
imports: import argparse
  import os
  import re
  import sys
  from pathlib import Path
  from subprocess import CalledProcessError, check_call, check_output
  from typing import Text, Set
  import questionary
  import toml
  from pep440_version_utils import Version, is_valid_version
label_desc: Use image node_id 13 for calling a global function with example usage: git_current_branch() and returns: output, str