class_docstr: Wrapper class for the basic Horovod API.
docstr: A function that returns the Horovod rank of the calling process.
  
  Returns:
    An integer scalar with the Horovod rank of the calling process.
docstr_tok: ["A","function","that","returns","the","Horovod","rank","of","the","calling","process",".","Returns",":","An","integer","scalar","with","the","Horovod","rank","of","the","calling","process","."]
code: def rank(self):
      """A function that returns the Horovod rank of the calling process.
  
      Returns:
        An integer scalar with the Horovod rank of the calling process.
      """
      rank = self.MPI_LIB_CTYPES.horovod_rank()
      if rank == -1:
          raise ValueError(
              "Horovod has not been initialized; use hvd.init()."
          )
      return rank
  
imports: import atexit
  import ctypes
  import os
  from typing import *
  from horovod.common.process_sets import ProcessSet, global_process_set, _init_process_sets
  from horovod.common import util
label_desc: Use image node_id 10 for calling the HorovodBasics obj's underlying member method code with example usage: obj.rank() and returns: rank