class_docstr: Tests for bluefog/tensorflow/mpi_ops.py
class_docstr_tok: ["Tests","for","bluefog\/tensorflow\/mpi_ops.py"]
code: def evaluate(self, tensors):
      if _executing_eagerly():
          return self._eval_helper(tensors)
      sess = ops.get_default_session()
      if sess is None:
          with self.test_session(config=config) as sess:
              return sess.run(tensors)
      else:
          return sess.run(tensors)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import itertools
  import numpy
  import os
  import tensorflow
  from bluefog.tensorflow.util import _executing_eagerly, _has_eager
  from tensorflow.python.framework import ops
  import warnings
  import bluefog.tensorflow
label_desc: Use image node_id 3 for calling the OpsTests obj's underlying member method code with example usage: obj.evaluate(tensors) and returns: self, sess, sess