parameters: (tag)
return_statement: return tag
docstring: Ensures that tag is encapsulated inside angle brackets.
docstring_summary: Ensures that tag is encapsulated inside angle brackets.
docstring_tokens: Ensures that tag is encapsulated inside angle brackets .
function: def xml_format(tag):
      """Ensures that tag is encapsulated inside angle brackets."""
      if tag[0] != "<":
          tag = "<" + tag
      if tag[-1:] != ">":
          tag += ">"
      return tag
function_tokens: def xml_format ( tag ) : if tag [ 0 ] != "<" : tag = "<" + tag if tag [ - 1 : ] != ">" : tag += ">" return tag