def ExpandImagePyramidHref(href, level, x, y):
  """ Replace $[level], $[x], and $[y]
  Args:
    level,x,y: int
  Returns:
    href: $[level],$[x],$[y], replaced with args
  """
  level = repr(level)
  x = repr(x)
  y = repr(y)
  return href.replace('$[level]', level).replace('$[x]', x).replace('$[y]', y)