code: def split_git_path(path):
      file_sub = re.sub(r"^git\+file:/+", "/", path)
      (file_path, version) = file_sub.split("@")
      file_path = os.path.realpath(file_path)
      root_path = get_git_root(file_path)
      if file_path.startswith(root_path):
          file_path = file_path[len(root_path) :].lstrip("/")
      return (root_path, file_path, version)
  
imports: import os
  import re
  from snakemake.exceptions import WorkflowError
label_desc: Use image node_id 1 for calling a global function with example usage: split_git_path(path) and returns: root_path,  file_path,  version