code: def test_load_service_from_directory():
      sys.modules.pop("service", None)
      service = load("./bento_with_models")
      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 1 for calling a global function with example usage: test_load_service_from_directory() without return types