class_docstr: Tests for basics.py
class_docstr_tok: ["Tests","for","basics.py"]
docstr: Test that the size returned by bf.size() is correct.
docstr_tok: ["Test","that","the","size","returned","by","bf.size","(",")","is","correct","."]
code: def test_bluefog_size(self):
      """Test that the size returned by bf.size() is correct."""
      _, true_size = mpi_env_rank_and_size()
      bf.init()
      size = bf.size()
      # print("Size: ", true_size, size)
      assert true_size == size
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import unittest
  import warnings
  import numpy
  import networkx
  import pytest
  import tensorflow
  from common import mpi_env_rank_and_size
  import bluefog.tensorflow
  from bluefog.common.topology_util import ExponentialGraph, RingGraph
label_desc: Use image node_id 3 for calling the BasicsTests obj's underlying member method code with example usage: obj.test_bluefog_size() without return types