parameters: (template, template_params=None)
return_statement: return string.Template(template).substitute(template_params)
docstring: Write a template to the stream.
docstring_summary: Write a template to the stream.
docstring_tokens: Write a template to the stream .
function: def template_format(template, template_params=None):
      # type: (str, Mapping[str,str]) -> str
      """Write a template to the stream."""
      # Ignore the types since we use str literals and this expects str but works fine with
      # str.
      # See https://docs.python.org/2/library/string.html#template-strings
      template = _escape_template_string(template)
      # pylint: disable=too-many-function-args
      return string.Template(template).substitute(template_params)
function_tokens: def template_format ( template , template_params = None ) : # type: (str, Mapping[str,str]) -> str # Ignore the types since we use str literals and this expects str but works fine with # str. # See https://docs.python.org/2/library/string.html#template-strings template = _escape_template_string ( template ) # pylint: disable=too-many-function-args return string . Template ( template ) . substitute ( template_params )