code: def test_flow_client_defaults(port_generator):
      exposed_port = port_generator()
      f = Flow(port=exposed_port).add(uses=SimplExecutor)
      c = Client(port=exposed_port)
      with f:
          docs = f.post(on="/index", inputs=[Document()])
          results = c.post(on="/index", inputs=[Document()])
      assert isinstance(docs, DocumentArray)
      assert docs[0].text == "Hello World!"
      assert isinstance(results, DocumentArray)
      assert results[0].text == "Hello World!"
  
file_path: jina/tests/unit/orchestrate/flow/flow-orchestrate/test_flow_docarray_return.py
imports: import pytest
  from docarray import DocumentArray
  from jina import Client, Document, Executor, Flow, requests, types
  from jina.excepts import BadServer
label_desc: Use image node_id 6 for calling a global function with example usage: test_flow_client_defaults(port_generator) without return types