class_docstr: A Starcraft II environment for playing vs humans over LAN.
  
  This owns a single instance, and expects to join a game hosted by some other
  script, likely play_vs_agent.py.
code: def close(self):
      if hasattr(self, "_tcp_conn") and self._tcp_conn:
          self._tcp_conn.close()
          self._tcp_conn = None
      if hasattr(self, "_udp_sock") and self._udp_sock:
          self._udp_sock.close()
          self._udp_sock = None
      self._run_config = None
      if hasattr(self, "_parallel") and self._parallel is not None:
          self._parallel.shutdown()
          self._parallel = None
      super(LanSC2Env, self).close()
  
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 4 for calling the LanSC2Env obj's underlying member method code with example usage: obj.close() without return types