code: def call_git_describe(abbrev=7):
      """return the string output of git describe"""
      try:
          # first, make sure we are actually in a Metaflow repo,
          # not some other repo
          with open(devnull, "w") as fnull:
              arguments = [GIT_COMMAND, "rev-parse", "--show-toplevel"]
              reponame = (
                  check_output(
                      arguments, cwd=CURRENT_DIRECTORY, stderr=fnull
                  )
                  .decode("ascii")
                  .strip()
              )
              if path.basename(reponame) != "metaflow":
                  return None
  
          with open(devnull, "w") as fnull:
              arguments = [
                  GIT_COMMAND,
                  "describe",
                  "--tags",
                  "--abbrev=%d" % abbrev,
              ]
              return (
                  check_output(
                      arguments, cwd=CURRENT_DIRECTORY, stderr=fnull
                  )
                  .decode("ascii")
                  .strip()
              )
  
      except (OSError, CalledProcessError):
          return None
  
file_path: metaflow/metaflow/metaflow_version.py
imports: from subprocess import check_output, CalledProcessError
  from os import path, name, devnull, environ, listdir
  import json
  from metaflow import CURRENT_DIRECTORY, INFO_FILE
label_desc: Use image node_id 1 for calling a global function with example usage: call_git_describe(abbrev) and returns: check_output, None, None