code: def get_bazel_version(bazel_path):
      try:
          version_output = shell([bazel_path, "--version"])
      except (subprocess.CalledProcessError, OSError):
          return None
      match = re.search(r"bazel *([0-9\\.]+)", version_output)
      if match is None:
          return None
      return tuple(int(x) for x in match.group(1).split("."))
  
imports: import argparse
  import collections
  import hashlib
  import os
  import platform
  import re
  import shutil
  import stat
  import subprocess
  import sys
  import textwrap
  import urllib.request
  import logging
label_desc: Use image node_id 12 for calling a global function with example usage: get_bazel_version(bazel_path) and returns: tuple, None, None