code: def on_load_bento(svc: Service, bento: Bento):
      object.__setattr__(svc, "bento", bento)
      object.__setattr__(svc, "tag", bento.info.tag)
  
imports: from __future__ import annotations
  import importlib
  import inspect
  import logging
  import os
  import sys
  import typing
  from functools import partial
  import attr
  from bentoml.exceptions import BentoMLException
  from ...exceptions import NotFound
  from ...grpc.utils import LATEST_PROTOCOL_VERSION
  from ...grpc.utils import import_grpc
  from ..bento.bento import get_default_svc_readme
  from ..context import ServiceContext
  from ..io_descriptors import IODescriptor
  from ..io_descriptors.base import IOType
  from ..models import Model
  from ..runner.runner import AbstractRunner
  from ..runner.runner import Runner
  from ..tag import Tag
  from ..utils import first_not_none
  from .inference_api import InferenceAPI
label_desc: Use image node_id 2 for calling a global function with example usage: on_load_bento(svc, bento) without return types