code: def executor():
      class DummyExecutor(Executor):
          @requests(on="/foo")
          def foo(self, docs, **kwargs):
              ...
  
          @requests(on="/bar")
          def bar(self, docs, **kwargs):
              ...
  
      return DummyExecutor
  
file_path: jina/tests/integration/monitoring/test_request_size.py
imports: import pytest
  import requests
  from docarray import DocumentArray
  from jina import Executor, Flow, requests
  from .None import get_metric_values
label_desc: Use image node_id 1 for calling a global function with example usage: executor() and returns: DummyExecutor