class_docstr: Tests function update_target_variables.
class_docstr_tok: ["Tests","function","update_target_variables","."]
docstr: Tests error when variable lists have unequal shapes.
docstr_tok: ["Tests","error","when","variable","lists","have","unequal","shapes","."]
code: def testIncompatibleShape(self):
      """Tests error when variable lists have unequal shapes."""
      with self.test_session():
          target_variables = [
              tf.Variable(tf.random_normal(shape=[1, 2])),
              tf.Variable(tf.random_normal(shape=[1, 2])),
          ]
          source_variables = [
              tf.Variable(tf.random_normal(shape=[1, 2])),
              tf.Variable(tf.random_normal(shape=[3, 4])),
          ]
          self.assertRaises(
              ValueError,
              target_update_ops.update_target_variables,
              target_variables,
              source_variables,
          )
  
file_path: trfl/trfl/target_update_ops_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  import tensorflow.compat.v1
  from trfl import target_update_ops
label_desc: Use image node_id 4 for calling the UpdateTargetVariablesTest obj's underlying member method code with example usage: obj.testIncompatibleShape() without return types