code: def test_base_executor(replicas, include_gateway, protocols):
      if replicas > 1 and not include_gateway:
          return
      ports = [random_port() for _ in range(len(protocols))]
      d = Deployment(
          replicas=replicas,
          protocol=protocols,
          port=ports,
          include_gateway=include_gateway,
      )
      with d:
          for protocol, port in zip(protocols, ports):
              c = Client(protocol=protocol, port=port)
              res = c.post(
                  on="/default",
                  inputs=DocList[LegacyDocument](
                      [LegacyDocument() for _ in range(10)]
                  ),
                  request_size=1,
                  return_type=DocList[LegacyDocument],
              )
              assert len(res) == 10
  
file_path: jina/tests/integration/deployment_http_composite/test_deployment_http_composite_docarray_v2.py
imports: import os
  import time
  from typing import Dict
  import pytest
  from jina import Client, Deployment, Executor, requests
  from jina._docarray import docarray_v2
  from jina.helper import random_port
label_desc: Use image node_id 3 for calling a global function with example usage: test_base_executor(replicas, include_gateway, protocols) without return types