code: def load_bento(
      bento: str | Tag | Bento,
      bento_store: "BentoStore" = Provide[BentoMLContainer.bento_store],
      standalone_load: bool = False,
  ) -> "Service":
      """Load a Service instance from a bento found in local bento store:
  
      Example usage:
          load_bento("FraudDetector:latest")
          load_bento("FraudDetector:20210709_DE14C9")
      """
      if isinstance(bento, (str, Tag)):
          bento = bento_store.get(bento)
  
      logger.debug(
          'Loading bento "%s" found in local store: %s',
          bento.tag,
          bento.path,
      )
  
      # not in validate as it's only really necessary when getting bentos from disk
      if bento.info.bentoml_version != BENTOML_VERSION:
          info_bentoml_version = bento.info.bentoml_version
          if tuple(info_bentoml_version.split(".")) > tuple(
              BENTOML_VERSION.split(".")
          ):
              logger.warning(
                  "%s was built with newer version of BentoML, which does not match with current running BentoML version %s",
                  bento,
                  BENTOML_VERSION,
              )
          else:
              logger.debug(
                  "%s was built with BentoML version %s, which does not match the current BentoML version %s",
                  bento,
                  info_bentoml_version,
                  BENTOML_VERSION,
              )
      return _load_bento(bento, standalone_load)
  
imports: from __future__ import annotations
  import importlib
  import logging
  import os
  import sys
  import typing
  from typing import TYPE_CHECKING
  import fs
  from simple_di import Provide
  from simple_di import inject
  from ...exceptions import BentoMLException
  from ...exceptions import ImportServiceError
  from ...exceptions import NotFound
  from ..bento import Bento
  from ..bento.bento import BENTO_PROJECT_DIR_NAME
  from ..bento.bento import BENTO_YAML_FILENAME
  from ..bento.bento import DEFAULT_BENTO_BUILD_FILE
  from ..bento.build_config import BentoBuildConfig
  from ..configuration import BENTOML_VERSION
  from ..configuration.containers import BentoMLContainer
  from ..models import ModelStore
  from ..tag import Tag
  from .service import on_load_bento
label_desc: Use image node_id 2 for calling a global function with example usage: load_bento(bento, bento_store, standalone_load) and returns: _load_bento