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 number of BytePS processes within the
  node the current process is running on.
  Returns:
    An integer scalar containing the number of local BytePS processes.
docstr_tok: ["A","function","that","returns","the","number","of","BytePS","processes","within","the","node","the","current","process","is","running","on",".","Returns",":","An","integer","scalar","containing","the","number","of","local","BytePS","processes","."]
code: def local_size(self):
      """A function that returns the number of BytePS processes within the
      node the current process is running on.
      Returns:
        An integer scalar containing the number of local BytePS processes.
      """
      local_size = self.C_LIB_CTYPES.byteps_local_size()
      if local_size == -1:
          raise ValueError(
              "BytePS has not been initialized; use bps.init()."
          )
      return local_size
  
file_path: byteps/byteps/common/__init__.py
imports: import ctypes
  import os
  import sysconfig
  import atexit
label_desc: Use image node_id 7 for calling the BytePSBasics obj's underlying member method code with example usage: obj.local_size() and returns: local_size