code: def load_bento_dir(
      path: str, standalone_load: bool = False
  ) -> "Service":
      """Load a Service instance from a bento directory
  
      Example usage:
          load_bento_dir("~/bentoml/bentos/iris_classifier/4tht2icroji6zput3suqi5nl2")
      """
      bento_fs = fs.open_fs(path)
      bento = Bento.from_fs(bento_fs)
      logger.debug(
          'Loading bento "%s" from directory: %s',
          bento.tag,
          path,
      )
      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 3 for calling a global function with example usage: load_bento_dir(path, standalone_load) and returns: _load_bento