code: def test_client_host_scheme(protocol):
      port = random_port()
      f = Flow(
          protocol="websocket" if protocol == "ws" else protocol,
          port=port,
      ).add()
      with f:
          c = Client(host=f"{protocol}://localhost:{port}")
          c.post("/", inputs=DocumentArray.empty(2))
  
imports: import pytest
  from docarray import DocumentArray
  from jina import Client, Flow
  from jina.helper import random_port
label_desc: Use image node_id 1 for calling a global function with example usage: test_client_host_scheme(protocol) without return types