code: def health() -> bool:
      client = find_binary()
  
      if psutil.WINDOWS:
          logger.error("nerdctl is NOT SUPPORTED on Windows.")
          return False
  
      if os.getenv("DOCKER_BUILDKIT", "") != "":
          logger.warning(
              "DOCKER_BUILDKIT will have no effect when using nerdctl."
          )
  
      if client is None:
          logger.warning(
              "nerdctl not found. Make sure it is installed and in your PATH. See https://github.com/containerd/nerdctl"
          )
          if psutil.MACOS:
              logger.info(
                  "To run nerdctl on MacOS, use lima. See https://github.com/lima-vm/lima#getting-started and use BuildKit templates to run nerdctl."
              )
          else:
              logger.info(
                  "See https://github.com/containerd/nerdctl/blob/master/docs/build.md for setting BuildKit with nerdctl."
              )
          return False
  
      from .buildctl import buildkitd_health
  
      return buildkitd_health()
  
file_path: BentoML/grpc-client/bentoml/_internal/container/nerdctl.py
imports: from __future__ import annotations
  import logging
  import os
  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: health() and returns: buildkitd_health, False, False