code: def templatemethod(name_):
      """This decorator wraps a method with `tf.make_template`. For example,
  
      @templatemethod
      def my_method():
        # Create variables
      """
  
      def template_decorator(func):
          """Inner decorator function"""
  
          def func_wrapper(*args, **kwargs):
              """Inner wrapper function"""
              templated_func = tf.make_template(name_, func)
              return templated_func(*args, **kwargs)
  
          return func_wrapper
  
      return template_decorator
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tensorflow
label_desc: Use image node_id 1 for calling a global function with example usage: templatemethod(name_) and returns: template_decorator, func_wrapper, templated_func