class_docstr: A key-value store for synchronization of values, over multiple devices.
class_docstr_tok: ["A","key-value","store","for","synchronization","of","values",",","over","multiple","devices","."]
docstr: Invokes global barrier among all worker nodes.
  
  For example, assume there are `n` machines. We would like machine `0` to first
  `init` the values and then have all the workers `pull` the initialized value.
  Before pulling, we can place invoke `_barrier()` to guarantee that the
  initialization is finished.
docstr_tok: ["Invokes","global","barrier","among","all","worker","nodes",".","For","example",",","assume","there","are","`","n","`","machines",".","We","would","like","machine","`","0","`","to","first","`","init","`","the","values","and","then","have","all","the","workers","`","pull","`","the","initialized","value",".","Before","pulling",",","we","can","place","invoke","`","_barrier","(",")","`","to","guarantee","that","the","initialization","is","finished","."]
code: def _barrier(self):
      """Invokes global barrier among all worker nodes.
  
      For example, assume there are `n` machines. We would like machine `0` to first
      `init` the values and then have all the workers `pull` the initialized value.
      Before pulling, we can place invoke `_barrier()` to guarantee that the
      initialization is finished.
      """
      check_call(_LIB.MXKVStoreBarrier(self.handle))
  
imports: import pickle
  import ctypes
  import os
  from ..ndarray import NDArray
  from ..ndarray import _ndarray_cls
  from ..base import _LIB, c_str
  from ..base import check_call, mx_uint, py_str
  from ..base import NDArrayHandle, KVStoreHandle
  from ..None import optimizer
  from .base import _ctype_key_value, _ctype_dict, KVStoreBase
label_desc: Use image node_id 18 for calling the KVStore obj's underlying member method code with example usage: obj._barrier() without return types