code: def test_load_multi_service_module():
      svc = import_service(
          "bento_service_in_module.multi_service:svc_i"
      )
      assert svc.name == "test-bento-service-in-module-i"
  
      svc = import_service(
          "bento_service_in_module.multi_service:svc_ii"
      )
      assert svc.name == "test-bento-service-in-module-ii"
  
      with pytest.raises(
          ImportServiceError,
          match="Multiple Service instances found in module",
      ):
          import_service("bento_service_in_module.multi_service")
  
      svc = import_service("multi_service_in_package:svc_i")
      assert svc.name == "test-multi-service-in-package-i"
  
      svc = import_service("multi_service_in_package:svc_ii")
      assert svc.name == "test-multi-service-in-package-ii"
  
      with pytest.raises(
          ImportServiceError,
          match="Multiple Service instances found in module",
      ):
          import_service("multi_service_in_package")
  
imports: import pytest
  from bentoml._internal.service.loader import import_service
  from bentoml.exceptions import ImportServiceError
label_desc: Use image node_id 3 for calling a global function with example usage: test_load_multi_service_module() without return types