class_docstr: Summary stats of the replays seen so far.
docstr: Merge another ReplayStats into this one.
docstr_tok: ["Merge","another","ReplayStats","into","this","one","."]
code: def merge(self, other):
      """Merge another ReplayStats into this one."""
  
      def merge_dict(a, b):
          for k, v in b.items():
              a[k] += v
  
      self.replays += other.replays
      self.steps += other.steps
      self.camera_move += other.camera_move
      self.select_pt += other.select_pt
      self.select_rect += other.select_rect
      self.control_group += other.control_group
      merge_dict(self.maps, other.maps)
      merge_dict(self.races, other.races)
      merge_dict(self.unit_ids, other.unit_ids)
      merge_dict(self.valid_abilities, other.valid_abilities)
      merge_dict(self.made_abilities, other.made_abilities)
      merge_dict(self.valid_actions, other.valid_actions)
      merge_dict(self.made_actions, other.made_actions)
      merge_dict(self.buffs, other.buffs)
      merge_dict(self.upgrades, other.upgrades)
      merge_dict(self.effects, other.effects)
      self.crashing_replays |= other.crashing_replays
      self.invalid_replays |= other.invalid_replays
  
imports: import collections
  import multiprocessing
  import os
  import queue
  import signal
  import sys
  import threading
  import time
  from absl import app
  from absl import flags
  from pysc2 import run_configs
  from pysc2.lib import features
  from pysc2.lib import point
  from pysc2.lib import protocol
  from pysc2.lib import remote_controller
  from pysc2.lib import replay
  from pysc2.lib import static_data
  from pysc2.lib import gfile
  from s2clientprotocol import common_pb2
  from s2clientprotocol import sc2api_pb2
label_desc: Use image node_id 2 for calling the ReplayStats obj's underlying member method code with example usage: obj.merge(other) without return types