code: def parse_git(root, **kwargs):
      """
      Parse function for setuptools_scm that ignores tags for non-C++
      subprojects, e.g. apache-arrow-js-XXX tags.
      """
      from setuptools_scm.git import parse
  
      kwargs[
          "describe_command"
      ] = 'git describe --dirty --tags --long --match "apache-arrow-[0-9]*.*"'
      return parse(root, **kwargs)
  
imports: import contextlib
  import os
  import os.path
  from os.path import join
  import re
  import shlex
  import sys
  import pkg_resources
  from setuptools import setup, Extension, Distribution, find_namespace_packages
  from Cython.Distutils import build_ext
  import Cython
label_desc: Use image node_id 3 for calling a global function with example usage: parse_git(root) and returns: parse