code: def test_external_flow_with_target_executor():
      class ExtExecutor(Executor):
          @requests
          def foo(self, docs, **kwargs):
              for doc in docs:
                  doc.text = "external"
  
      external_flow = Flow().add(uses=ExtExecutor)
  
      with external_flow:
          d = Document(text="sunset with green landscape by the river")
          f = Flow().add(
              port=external_flow.port,
              external=True,
              name="external_executor",
          )
          with f:
              response = f.post(
                  on="/", inputs=d, target_executor="external_executor"
              )
  
      assert response[0].text == "external"
  
imports: import uuid
  import pytest
  import jina.excepts
  from jina import Document, DocumentArray, Executor, Flow, requests
  from jina.helper import random_port
  from jina.orchestrate.deployments import Deployment
  from jina.parsers import set_deployment_parser
  from jina.serve.helper import get_server_side_grpc_options
label_desc: Use image node_id 20 for calling a global function with example usage: test_external_flow_with_target_executor() without return types