code: def git_cmd(fn):
      # function name is the subcommand
      sub_cmd = fn.__name__.replace("_", "-")
  
      def wrapper(self, *argv, **kwargs):
          return fn(self, sub_cmd, *argv, **kwargs)
  
      return wrapper
  
file_path: arrow/dev/archery/archery/utils/git.py
imports: from .command import Command, capture_stdout, default_bin
  from ..compat import _stringify_path
label_desc: Use image node_id 1 for calling a global function with example usage: git_cmd(fn) and returns: wrapper, fn