code: def test_load(
      framework: types.ModuleType,
      test_model: FrameworkTestModel,
      saved_model: bentoml.Model,
  ):
      for configuration in test_model.configurations:
          model = framework.load_model(saved_model)
          configuration.check_model(model, {})
          if test_model.model_method_caller:
              for meth, inp in [
                  (m, _i)
                  for m, i in configuration.test_inputs.items()
                  for _i in i
              ]:
                  inp.check_output(
                      test_model.model_method_caller(
                          test_model,
                          meth,
                          tuple(inp.input_args),
                          inp.input_kwargs,
                      )
                  )
  
imports: from __future__ import annotations
  import logging
  import os
  import types
  import typing
  from typing import TYPE_CHECKING
  import pytest
  import bentoml
  from bentoml._internal.models.model import ModelContext
  from bentoml._internal.models.model import ModelSignature
  from bentoml._internal.runner.runner import Runner
  from bentoml._internal.runner.runner_handle.local import LocalRunnerRef
  from bentoml._internal.runner.strategy import DefaultStrategy
  from bentoml.exceptions import NotFound
  from .models import FrameworkTestModel
label_desc: Use image node_id 8 for calling a global function with example usage: test_load(framework, test_model, saved_model) without return types