class_docstr: A Starcraft II environment.
  
  The implementation details of the action and observation specs are in
  lib/features.py
docstr: Start a new episode.
docstr_tok: ["Start","a","new","episode","."]
code: def reset(self):
      """Start a new episode."""
      self._episode_steps = 0
      if self._episode_count:
          # No need to restart for the first episode.
          self._restart()
  
      self._episode_count += 1
      races = [
          Race(r).name for _, r in sorted(self._requested_races.items())
      ]
      logging.info(
          "Starting episode %s: [%s] on %s",
          self._episode_count,
          ", ".join(races),
          self._map_name,
      )
      self._metrics.increment_episode()
  
      self._last_score = [0] * self._num_agents
      self._state = environment.StepType.FIRST
      if self._realtime:
          self._last_step_time = time.time()
          self._last_obs_game_loop = None
          self._action_delays = [
              [0] * NUM_ACTION_DELAY_BUCKETS
          ] * self._num_agents
  
      return self._observe(target_game_loop=0)
  
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 13 for calling the SC2Env obj's underlying member method code with example usage: obj.reset() and returns: self