docstr: 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}
      TFParallel.run(
          self.sc,
          _map_fun,
          tf_args=args,
          num_executors=self.num_workers,
          use_barrier=False,
      )
  
file_path: TensorFlowOnSpark/tests/test_TFParallel.py
imports: import unittest
  import test
  from tensorflowonspark import TFParallel
label_desc: Use image node_id 3 for calling the TFParallelTest obj's underlying member method code with example usage: obj.test_basic_tf() without return types