code: def register_default_backends():
      for backend in DEFAULT_BACKENDS:
          try:
              module = t.cast(
                  "DefaultBackendImpl",
                  importlib.import_module(f".{backend}", __name__),
              )
              register_backend(
                  backend,
                  health=module.health,
                  binary=module.find_binary(),
                  construct_build_args=module.construct_build_args,
                  buildkit_support=module.BUILDKIT_SUPPORT,
                  env=getattr(module, "ENV", None),
                  build_cmd=getattr(module, "BUILD_CMD", None),
              )
          except NotImplementedError:
              logger.debug("%s is not yet implemented.", backend)
          except Exception as err:  # pylint: disable=broad-except
              raise ValueError(
                  f"Failed to register backend '{backend}: {err}'"
              ) from None
  
imports: from __future__ import annotations
  import contextlib
  import importlib
  import logging
  import os
  import sys
  import types
  import typing
  from typing import TYPE_CHECKING
  import fs
  import fs.mirror
  from simple_di import Provide
  from simple_di import inject
  from ...exceptions import InvalidArgument
  from ..configuration.containers import BentoMLContainer
  from ..utils import bentoml_cattr
  from .base import OCIBuilder
  from .generate import generate_containerfile
label_desc: Use image node_id 1 for calling a global function with example usage: register_default_backends() without return types