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 size of the machine.
  
  Returns:
      An integer scalar with the BlueFog size of the machine.
docstr_tok: ["A","function","that","returns","the","BlueFog","size","of","the","machine",".","Returns",":","An","integer","scalar","with","the","BlueFog","size","of","the","machine","."]
code: def machine_size(self) -> int:
      """A function that returns the BlueFog size of the machine.
  
      Returns:
          An integer scalar with the BlueFog size of the machine.
      """
      # TODO(hhb) This only supports the homogenous environment now. Currently it assumes all
      # machines share the same local_size()
      assert (
          self.is_homogeneous()
      ), "Only supports homogeneous environment now"
      return self.size() // self.local_size()
  
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 9 for calling the BlueFogBasics obj's underlying member method code with example usage: obj.machine_size() and returns: unknown