code: def get_git_branch():
      try:
          out = subprocess.check_output(["git", "branch"]).decode(
              "utf8"
          )
          current = next(
              line for line in out.split("\n") if line.startswith("*")
          )
          current.replace("* ", "")
      except subprocess.CalledProcessError:
          current = "inside_docker"
      return current
  
imports: import datetime
  import glob
  import os
  import shutil
  import subprocess
  import sys
  from pathlib import Path
  import torch
label_desc: Use image node_id 1 for calling a global function with example usage: get_git_branch() and returns: current