code: def get_bazel_path(bazel_path_flag):
      """Returns the path to a Bazel binary, downloading Bazel if not found. Also,
      checks Bazel's version is at least newer than 5.1.1
  
      A manual version check is needed only for really old bazel versions.
      Newer bazel releases perform their own version check against .bazelversion
      (see for details
      https://blog.bazel.build/2019/12/19/bazel-2.0.html#other-important-changes).
      """
      for path in filter(None, get_bazel_paths(bazel_path_flag)):
          version = get_bazel_version(path)
          if version is not None and version >= (5, 1, 1):
              return path, ".".join(map(str, version))
  
      print(
          "Cannot find or download a suitable version of bazel."
          "Please install bazel >= 5.1.1."
      )
      sys.exit(-1)
  
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 11 for calling a global function with example usage: get_bazel_path(bazel_path_flag) and returns: path,  str