import re


def MakeHeaderToken(filename):
  """Generates a header guard token.

  Args:
    filename: the name of the header file

  Returns:
    the generated header guard token.
  """
  return re.sub('[^A-Z0-9_]', '_', filename.upper()) + '__'