code: def test_same_unique_name_raise_error(self):
      tmpl1 = template.make_template(
          "_", variable_scoped_function, unique_name_="s1"
      )
      tmpl1()
      tmpl2 = template.make_template(
          "_", variable_scoped_function, unique_name_="s1"
      )
      with self.assertRaisesRegex(
          ValueError, "Variable s1/dummy already exists, disallowed.*"
      ):
          tmpl2()
  
imports: import functools
  import traceback
  from tensorflow.python.client import session
  from tensorflow.python.eager import context
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import random_seed
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import init_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import template
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.ops import variables
  import tensorflow.python.ops.nn_grad
  from tensorflow.python.platform import test
  from tensorflow.python.training import gradient_descent
label_desc: Use image node_id 7 for calling the TemplateTest obj's underlying member method code with example usage: obj.test_same_unique_name_raise_error() without return types