code: def build(
      bento_tag: Tag | str,
      backend: str,
      features: t.Sequence[str] | None = None,
      _bento_store: BentoStore = Provide[BentoMLContainer.bento_store],
      **kwargs: t.Any,
  ):
      clean_context = contextlib.ExitStack()
  
      bento = _bento_store.get(bento_tag)
  
      builder = get_backend(backend)
      context_path, dockerfile = clean_context.enter_context(
          construct_containerfile(
              bento,
              features=features,
              enable_buildkit=enable_buildkit(builder=builder),
          )
      )
      try:
          kwargs.update(
              {"file": dockerfile, "context_path": context_path}
          )
          return builder.build(**kwargs)
      except Exception as e:  # pylint: disable=broad-except
          logger.error(
              "\nEncountered exception while trying to building image: %s",
              e,
              exc_info=sys.exc_info(),
          )
      finally:
          clean_context.close()
  
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 5 for calling a global function with example usage: build(bento_tag, backend, features, _bento_store) and returns: builder