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: Returns the rank of this worker node.
  
  Returns
  -------
  rank : int
      The rank of this node, which is in range [0, num_workers())
docstr_tok: ["Returns","the","rank","of","this","worker","node",".","Returns","--","--","--","-","rank",":","int","The","rank","of","this","node",",","which","is","in","range","[","0",",","num_workers","(",")",")"]
code: def rank(self):
      """Returns the rank of this worker node.
  
      Returns
      -------
      rank : int
          The rank of this node, which is in range [0, num_workers())
      """
      rank = ctypes.c_int()
      check_call(_LIB.MXKVStoreGetRank(self.handle, ctypes.byref(rank)))
      return rank.value
  
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 13 for calling the KVStore obj's underlying member method code with example usage: obj.rank() and returns: rank