class_docstr: Wrapper class for the basic Horovod API.
docstr: A function that returns the number of Horovod processes.
  
  Returns:
    An integer scalar containing the number of Horovod processes.
docstr_tok: ["A","function","that","returns","the","number","of","Horovod","processes",".","Returns",":","An","integer","scalar","containing","the","number","of","Horovod","processes","."]
code: def size(self):
      """A function that returns the number of Horovod processes.
  
      Returns:
        An integer scalar containing the number of Horovod processes.
      """
      size = self.MPI_LIB_CTYPES.horovod_size()
      if size == -1:
          raise ValueError(
              "Horovod has not been initialized; use hvd.init()."
          )
      return size
  
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 7 for calling the HorovodBasics obj's underlying member method code with example usage: obj.size() and returns: size