code: def write_tcp(conn, msg):
      log_msg("write_tcp", msg)
      conn.sendall(struct.pack("@I", len(msg)))
      conn.sendall(msg)
  
imports: import binascii
  import collections
  import hashlib
  import json
  import os
  import shutil
  import socket
  import struct
  import subprocess
  import threading
  import time
  from absl import logging
  from pysc2 import run_configs
  from pysc2.env import sc2_env
  from pysc2.lib import features
  from pysc2.lib import run_parallel
  from s2clientprotocol import sc2api_pb2
label_desc: Use image node_id 10 for calling a global function with example usage: write_tcp(conn, msg) without return types