def METHOD_NAME():
    port = random_port()
    f = Flow(port=port).add().add(needs=['gateway', 'executor0'], name='my_target')
    with f:
        results = Client(port=f.port).post(
            on='/search',
            inputs=Document(),
            target_executor='my_target',
            return_responses=True,
        )
        assert len(results[0].data.docs) == 1