code: def test_uses_after_no_reduce(n_shards, n_docs, port_generator):
      exposed_port = port_generator()
      search_flow = Flow(port=exposed_port).add(
          uses=ShardsExecutor,
          shards=n_shards,
          uses_after=DummyExecutor,
          polling="all",
          uses_with={"n_docs": n_docs},
      )
  
      with search_flow:
          da = DocumentArray([Document() for _ in range(5)])
          resp = Client(port=exposed_port).post(
              "/search", inputs=da, return_responses=True
          )
  
      # assert no reduce happened
      assert len(resp[0].docs) == 1
      assert resp[0].docs[0].id == "fake_document"
  
imports: import numpy
  import pytest
  from jina import Client, Document, DocumentArray, Executor, Flow, requests
label_desc: Use image node_id 2 for calling a global function with example usage: test_uses_after_no_reduce(n_shards, n_docs, port_generator) without return types