code: def buildkitd_health() -> bool:
      if (
          shutil.which("buildkitd")
          or os.getenv("BUILDKIT_HOST", "") != ""
      ):
          pass
      else:
          logger.error(
              "Both buildkitd and BUILDKIT_HOST are not found. Ensure to use either of them."
          )
          tool = shutil.which("docker") or shutil.which("podman")
          if tool is not None:
              buildkitd_instructions = "\n".join(
                  [
                      "To run a portable buildkitd (via container), do the following in a terminal:",
                      "    %s run -d --name buildkitd --privileged moby/buildkit:master",
                      "    export BUILDKIT_HOST=%s-container://buildkitd",
                      "Then proceed with 'containerize' again.",
                  ]
              )
              logger.info(
                  buildkitd_instructions, tool, tool.split(os.sep)[-1]
              )
          return False
  
      return True
  
file_path: BentoML/grpc-client/bentoml/_internal/container/buildctl.py
imports: from __future__ import annotations
  import logging
  import os
  import re
  import shutil
  import typing
  from typing import TYPE_CHECKING
  import psutil
  from .base import Arguments
label_desc: Use image node_id 2 for calling a global function with example usage: buildkitd_health() and returns: True, False