code: def assign(self, variables, values):
      if _executing_eagerly():
          for var, val in zip(variables, values):
              var.assign(val)
      else:
          sess = ops.get_default_session()
          if sess is None:
              with self.test_session(config=config) as sess:
                  for var, val in zip(variables, values):
                      var.load(val, sess)
          else:
              for var, val in zip(variables, values):
                  var.load(val, sess)
  
file_path: horovod/test/parallel/base_test_tensorflow.py
imports: import os
  import tensorflow
  from horovod.tensorflow.util import _executing_eagerly
  from tensorflow.python.framework import ops
  import warnings
label_desc: Use image node_id 3 for calling the BaseTensorFlowTests obj's underlying member method code with example usage: obj.assign(variables, values) without return types