class_docstr: Wrapper class for the basic BlueFog API.
class_docstr_tok: ["Wrapper","class","for","the","basic","BlueFog","API","."]
docstr: A function that returns the local BlueFog 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 BlueFog rank of the calling process.
docstr_tok: ["A","function","that","returns","the","local","BlueFog","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","BlueFog","rank","of","the","calling","process","."]
code: def local_rank(self) -> int:
      """A function that returns the local BlueFog 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 BlueFog rank of the calling process.
      """
      local_rank = self._MPI_LIB_CTYPES.bluefog_local_rank()
      if local_rank == -1:
          raise ValueError(
              "BlueFog has not been initialized; use bf.init()."
          )
      return local_rank
  
imports: from typing import List, Callable, Optional
  import atexit
  import contextlib
  import ctypes
  import logging
  import networkx
  import bluefog.common.util
  import bluefog.common.topology_util
label_desc: Use image node_id 7 for calling the BlueFogBasics obj's underlying member method code with example usage: obj.local_rank() and returns: local_rank