code: def load_model(
      bento_model: str | Tag | bentoml.Model,
  ) -> learner.Learner:
      """
      Load the ``fastai.learner.Learner`` model instance with the given tag from the local BentoML model store.
  
      If the model uses ``mixed_precision``, then the loaded model will also be converted to FP32. Learn more about `mixed precision <https://docs.fast.ai/callback.fp16.html>`_.
  
      Args:
          bento_model: Either the tag of the model to get from the store, or a BentoML `~bentoml.Model` instance to load the model from.
  
      Returns:
          :code:`fastai.learner.Learner`:
              The :code:`fastai.learner.Learner` model instance loaded from the model store or BentoML :obj:`~bentoml.Model`.
  
      Example:
  
      .. code-block:: python
  
         import bentoml
  
         model = bentoml.fastai.load_model("fai_learner")
         results = model.predict("some input")
      """  # noqa
  
      if not isinstance(bento_model, bentoml.Model):
          bento_model = get(bento_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}, failed loading with {MODULE_NAME}."
          )
  
      pickle_file: str = bento_model.path_of(MODEL_FILENAME)
      with open(pickle_file, "rb") as f:
          return t.cast(
              learner.Learner, learner.load_learner(f, cpu=True)
          )
  
file_path: BentoML/src/bentoml/_internal/frameworks/fastai.py
imports: from __future__ import annotations
  import contextlib
  import logging
  import typing
  from types import ModuleType
  from typing import TYPE_CHECKING
  import bentoml
  from ...exceptions import BentoMLException
  from ...exceptions import InvalidArgument
  from ...exceptions import MissingDependencyException
  from ...exceptions import NotFound
  from ..models.model import ModelContext
  from ..utils.pkg import get_pkg_version
  from .common.pytorch import PyTorchTensorContainer
label_desc: Use image node_id 2 for calling a global function with example usage: load_model(bento_model) and returns: t