class_docstr: A Starcraft II environment.
  
  The implementation details of the action and observation specs are in
  lib/features.py
code: def _restart(self):
      if (
          len(self._players) == 1
          and len(self._players[0].race) == 1
          and len(self._maps) == 1
      ):
          # Need to support restart for fast-restart of mini-games.
          self._controllers[0].restart()
      else:
          if len(self._controllers) > 1:
              self._parallel.run(c.leave for c in self._controllers)
          self._create_join()
  
imports: import collections
  import copy
  import random
  import time
  from absl import logging
  from pysc2 import maps
  from pysc2 import run_configs
  from pysc2.env import enums
  from pysc2.env import environment
  from pysc2.lib import actions
  from pysc2.lib import features
  from pysc2.lib import metrics
  from pysc2.lib import portspicker
  from pysc2.lib import renderer_human
  from pysc2.lib import run_parallel
  from pysc2.lib import stopwatch
  from s2clientprotocol import sc2api_pb2
label_desc: Use image node_id 12 for calling the SC2Env obj's underlying member method code with example usage: obj._restart() without return types