code: def tcp_to_udp(tcp_conn, udp_sock, udp_to_addr):
      while True:
          msg = read_tcp(tcp_conn)
          if not msg:
              return
          log_msg("write_udp", msg)
          udp_sock.sendto(msg, udp_to_addr)
  
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 7 for calling a global function with example usage: tcp_to_udp(tcp_conn, udp_sock, udp_to_addr) without return types