code: def test_func_failure():
      class MyExecutor(Executor):
          @requests(on="/search")
          def foo(self, **kwargs):
              raise Exception()
  
      port = random_port()
  
      f = Flow(port=port).add(uses=MyExecutor)
  
      with f:
          results = Client(port=f.port).post(
              on="/search",
              inputs=[(Document(), Document()) for _ in range(3)],
              return_responses=True,
              continue_on_error=True,
          )
  
      assert results[0].header.status.code == 1
  
file_path: jina/tests/integration/v2_api/test_func_routing.py
imports: from jina import Client, Document, DocumentArray, Executor, Flow, requests
  from jina.helper import random_port
label_desc: Use image node_id 2 for calling a global function with example usage: test_func_failure() without return types