code: def wait(self):
      self.cond.acquire()
      me = self.count
      self.count += 1
      if self.count < self.n:
          self.cond.wait()
      else:
          self.count = 0
          self.cond.notify_all()
      self.cond.release()
      return me
  
file_path: pysc2/pysc2/lib/run_parallel_test.py
imports: import threading
  from absl.testing import absltest
  from pysc2.lib import run_parallel
label_desc: Use image node_id 2 for calling the Barrier obj's underlying member method code with example usage: obj.wait() and returns: me