code: def test_template_in_scope(self):
      tmpl1 = template.make_template("s1", variable_scoped_function)
      tmpl2 = template.make_template("s1", variable_scoped_function)
  
      with variable_scope.variable_scope("scope"):
          v1 = tmpl1()
          v3 = tmpl2()
  
      # The template contract requires the following to ignore scope2.
      with variable_scope.variable_scope("scope2"):
          v2 = tmpl1()
      self.assertIs(v1, v2)
      self.assertIsNot(v1, v3)
      self.assertEqual("scope/s1/dummy:0", v1.name)
      self.assertEqual("scope/s1_1/dummy:0", v3.name)
  
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 10 for calling the TemplateTest obj's underlying member method code with example usage: obj.test_template_in_scope() without return types