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 local BytePS rank of the calling process, within the
  node that it is running on. For example, if there are seven processes running
  on a node, their local ranks will be zero through six, inclusive.
  Returns:
    An integer scalar with the local BytePS rank of the calling process.
docstr_tok: ["A","function","that","returns","the","local","BytePS","rank","of","the","calling","process",",","within","the","node","that","it","is","running","on",".","For","example",",","if","there","are","seven","processes","running","on","a","node",",","their","local","ranks","will","be","zero","through","six",",","inclusive",".","Returns",":","An","integer","scalar","with","the","local","BytePS","rank","of","the","calling","process","."]
code: def local_rank(self):
      """A function that returns the local BytePS rank of the calling process, within the
      node that it is running on. For example, if there are seven processes running
      on a node, their local ranks will be zero through six, inclusive.
      Returns:
        An integer scalar with the local BytePS rank of the calling process.
      """
      local_rank = self.C_LIB_CTYPES.byteps_local_rank()
      if local_rank == -1:
          raise ValueError(
              "BytePS has not been initialized; use bps.init()."
          )
      return local_rank
  
file_path: byteps/byteps/common/__init__.py
imports: import ctypes
  import os
  import sysconfig
  import atexit
label_desc: Use image node_id 9 for calling the BytePSBasics obj's underlying member method code with example usage: obj.local_rank() and returns: local_rank