class_docstr: Wrapper class for the basic BytePS API.
class_docstr_tok: ["Wrapper","class","for","the","basic","BytePS","API","."]
docstr: A function that returns the BytePS rank of the calling process.
  Returns:
    An integer scalar with the BytePS rank of the calling process.
docstr_tok: ["A","function","that","returns","the","BytePS","rank","of","the","calling","process",".","Returns",":","An","integer","scalar","with","the","BytePS","rank","of","the","calling","process","."]
code: def rank(self):
      """A function that returns the BytePS rank of the calling process.
      Returns:
        An integer scalar with the BytePS rank of the calling process.
      """
      rank = self.C_LIB_CTYPES.byteps_rank()
      if rank == -1:
          raise ValueError(
              "BytePS has not been initialized; use bps.init()."
          )
      return rank
  
file_path: byteps/byteps/common/__init__.py
imports: import ctypes
  import os
  import sysconfig
  import atexit
label_desc: Use image node_id 8 for calling the BytePSBasics obj's underlying member method code with example usage: obj.rank() and returns: rank