docstr: Single-node TF graph (w/ args) running independently on multiple executors.
docstr_tok: ["Single-node","TF","graph","(","w\/","args",")","running","independently","on","multiple","executors","."]
code: def test_basic_tf(self):
      """Single-node TF graph (w/ args) running independently on multiple executors."""
  
      def _map_fun(args, ctx):
          import tensorflow as tf
  
          x = tf.constant(args["x"])
          y = tf.constant(args["y"])
          sum = tf.math.add(x, y)
          assert sum.numpy() == 3
  
      args = {"x": 1, "y": 2}
      cluster = TFCluster.run(
          self.sc,
          _map_fun,
          tf_args=args,
          num_executors=self.num_workers,
          num_ps=0,
      )
      cluster.shutdown()
  
file_path: TensorFlowOnSpark/tests/test_TFCluster.py
imports: import unittest
  import test
  import time
  from tensorflowonspark import TFCluster, TFNode
label_desc: Use image node_id 3 for calling the TFClusterTest obj's underlying member method code with example usage: obj.test_basic_tf() without return types