class_docstr: Tests for horovod.common.
class_docstr_tok: ["Tests","for","horovod.common","."]
docstr: Test that Gloo has been built if env is set.
docstr_tok: ["Test","that","Gloo","has","been","built","if","env","is","set","."]
code: def test_gloo_built(self):
      """Test that Gloo has been built if env is set."""
      gloo_rank = int(os.getenv("HOROVOD_RANK", -1))
      if gloo_rank >= 0:
          self.assertTrue(gloo_built())
  
file_path: horovod/test/parallel/test_common.py
imports: import os
  import unittest
  import warnings
  from horovod.common.util import _cache, extension_available, gloo_built, mpi_built
label_desc: Use image node_id 2 for calling the CommonTests obj's underlying member method code with example usage: obj.test_gloo_built() without return types