code: def template(pattern, flags=0):
      "Compile a template pattern, returning a Pattern object, deprecated"
      import warnings
  
      warnings.warn(
          "The re.template() function is deprecated "
          "as it is an undocumented function "
          "without an obvious purpose. "
          "Use re.compile() instead.",
          DeprecationWarning,
      )
      with warnings.catch_warnings():
          warnings.simplefilter(
              "ignore", DeprecationWarning
          )  # warn just once
          return _compile(pattern, flags | T)
  
imports: import enum
  from .None import _compiler, _parser
  import functools
  import copyreg
label_desc: Use image node_id 11 for calling a global function with example usage: template(pattern, flags) and returns: _compile