code: def load_model(bento_model: str | Tag | bentoml.Model) -> lgb.basic.Booster:  # type: ignore (incomplete ligthgbm type stubs)
      """
      Load the LightGBM model with the given tag from the local BentoML model store.
  
      Args:
          bento_model (``str`` ``|`` :obj:`~bentoml.Tag` ``|`` :obj:`~bentoml.Model`):
              Either the tag of the model to get from the store, or a BentoML `~bentoml.Model`
              instance to load the model from.
      Returns:
          :obj:`~lightgbm.basic.Booster`: The LightGBM model loaded from the model store or BentoML :obj:`~bentoml.Model`.
  
      Example:
  
      .. code-block:: python
  
          import bentoml
          gbm = bentoml.lightgbm.load("my_lightgbm_model:latest")
      """  # noqa
      if not isinstance(bento_model, bentoml.Model):
          bento_model = get(bento_model)
          assert isinstance(bento_model, bentoml.Model)
  
      if bento_model.info.module not in (MODULE_NAME, __name__):
          raise NotFound(
              f"Model {bento_model.tag} was saved with module {bento_model.info.module}, not loading with {MODULE_NAME}."
          )
  
      model_file = bento_model.path_of(MODEL_FILENAME)
      booster = lgb.basic.Booster(model_file=model_file)  # type: ignore (incomplete ligthgbm type stubs)
      return booster
  
file_path: BentoML/src/bentoml/_internal/frameworks/lightgbm.py
imports: from __future__ import annotations
  import logging
  import typing
  from types import ModuleType
  from typing import TYPE_CHECKING
  import numpy
  import bentoml
  from bentoml import Tag
  from bentoml.exceptions import InvalidArgument
  from bentoml.exceptions import MissingDependencyException
  from bentoml.exceptions import NotFound
  from ..models.model import ModelContext
  from ..utils.pkg import get_pkg_version
label_desc: Use image node_id 2 for calling a global function with example usage: load_model(bento_model) and returns: booster