code: def test_serve_with_timeout():
      server = bentoml.HTTPServer("service.py:svc", port=12349)
      config_file = os.path.abspath("configs/timeout.yml")
      env = os.environ.copy()
      env.update(BENTOML_CONFIG=config_file)
  
      with server.start(env=env) as client:
          with pytest.raises(
              BentoMLException,
              match="504: b'Not able to process the request in 1 seconds'",
          ):
              client.call("echo_delay", {})
  
file_path: BentoML/tests/e2e/bento_server_http/tests/test_serve.py
imports: import asyncio
  import os
  import sys
  import time
  from pathlib import Path
  import pytest
  import bentoml
  from bentoml.exceptions import BentoMLException
  from bentoml.testing.utils import async_request
label_desc: Use image node_id 4 for calling a global function with example usage: test_serve_with_timeout() without return types