code: def test_load_service_from_bento():
      sys.modules.pop("service", None)
      with open("./bento_with_models/bentofile.yaml") as f:
          build_config = BentoBuildConfig.from_yaml(f)
      bento = Bento.create(
          build_config=build_config,
          version="1.0",
          build_ctx="./bento_with_models",
      ).save()
  
      sys.modules.pop("service", None)
      service = load(bento.tag)
      assert service.name == "test-bento-service-with-models"
      assert len(service.models) == 2
      assert service.models[1].tag.name == "anothermodel"
  
imports: import sys
  import pytest
  from bentoml._internal.bento import Bento
  from bentoml._internal.bento.build_config import BentoBuildConfig
  from bentoml._internal.service.loader import load
label_desc: Use image node_id 2 for calling a global function with example usage: test_load_service_from_bento() without return types