code: def test_send():
      # Send commands to server via channel, and get them back via server's stdout.
      _client.send(_command1)
      _client.send(_command2)
      time.sleep(0.01)
  
      sent1 = json.loads(_server.stdout.readline())
      assert sent1 == _command1, sent1
  
      sent2 = json.loads(_server.stdout.readline().strip())
      assert sent2 == _command2, sent2
  
file_path: nni/test/ut/sdk/test_ws_channel.py
imports: import atexit
  from dataclasses import dataclass
  import importlib
  import json
  import os
  from pathlib import Path
  from subprocess import Popen, PIPE
  import sys
  import time
  from nni.runtime.command_channel.websocket import WsChannelClient
label_desc: Use image node_id 2 for calling a global function with example usage: test_send() without return types