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 BlueFog rank of the calling process.
  
  Returns:
      An integer scalar with the BlueFog rank of the calling process.
docstr_tok: ["A","function","that","returns","the","BlueFog","rank","of","the","calling","process",".","Returns",":","An","integer","scalar","with","the","BlueFog","rank","of","the","calling","process","."]
code: def rank(self) -> int:
      """A function that returns the BlueFog rank of the calling process.
  
      Returns:
          An integer scalar with the BlueFog rank of the calling process.
      """
      rank = self._MPI_LIB_CTYPES.bluefog_rank()
      if rank == -1:
          raise ValueError(
              "BlueFog has not been initialized; use bf.init()."
          )
      return 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 6 for calling the BlueFogBasics obj's underlying member method code with example usage: obj.rank() and returns: rank