code: def test_target_executor_with_overlaped_name(mocker):
      class FailExecutor(Executor):
          @requests
          def fail(self, **kwargs):
              raise RuntimeError
  
      class PassExecutor(Executor):
          @requests
          def success(self, **kwargs):
              pass
  
      port = random_port()
      f = (
          Flow(port=port)
          .add(uses=FailExecutor, name="foo_with_what_ever_suffix")
          .add(uses=PassExecutor, name="foo")
      )
  
      with f:
          docs = Client(port=f.port).post(
              on="/foo",
              target_executor="^foo$",
              inputs=Document(),
          )
  
          assert len(docs) == 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 8 for calling a global function with example usage: test_target_executor_with_overlaped_name(mocker) without return types