code: def health() -> bool:
      client = find_binary()
      if client is None:
          logger.warning(
              "Docker not found. Make sure it is installed and in your PATH. See https://docs.docker.com/get-docker/"
          )
          return False
      # next, we will check if given docker is > 18.09 for BuildKit support.
      v = re.match(
          r"(\d+)\.(\d+)\.(\d+)",  # handle pre-release versions of docker.
          subprocess.check_output(
              [
                  client,
                  "version",
                  "--format",
                  "{{json .Server.Version}}",
              ]
          )
          .decode("utf-8")
          .strip('\n"'),
      )
      assert v is not None
      if (
          parse(v.group()) < parse("18.09")
          and int(os.getenv("DOCKER_BUILDKIT", 1)) == 1
      ):
          logger.warning(
              "Docker version: %s, which doesn't support BuildKit. Please upgrade to 18.09 or newer. See https://docs.docker.com/get-docker/",
              v.group(),
          )
          return False
      return True
  
file_path: BentoML/grpc-client/bentoml/_internal/container/docker.py
imports: from __future__ import annotations
  import logging
  import os
  import re
  import shutil
  import subprocess
  import typing
  from typing import TYPE_CHECKING
  import psutil
  from packaging.version import parse
  from .base import Arguments
label_desc: Use image node_id 2 for calling a global function with example usage: health() and returns: True, False, False