docstr: Single-node TF graph (w/ args) running independently on multiple executors using Spark barrier with insufficient resource.
code: def test_basic_tf_barrier_insufficient_resources(self):
      """Single-node TF graph (w/ args) running independently on multiple executors using Spark barrier with insufficient resource."""
  
      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}
      with self.assertRaises(Exception):
          TFParallel.run(
              self.sc,
              _map_fun,
              tf_args=args,
              num_executors=self.num_workers + 1,
          )
  
file_path: TensorFlowOnSpark/tests/test_TFParallel.py
imports: import unittest
  import test
  from tensorflowonspark import TFParallel
label_desc: Use image node_id 5 for calling the TFParallelTest obj's underlying member method code with example usage: obj.test_basic_tf_barrier_insufficient_resources() without return types