import re


def IsGCESlave(slavename):
  """Returns (bool): Whether |slavename| is hosted on GCE.

  Args:
    slavename: The hostname of the slave.
  """
  # The "-c2" suffix indicates that a builder is in GCE (as opposed to
  # in the Chrome Golo, which has a -m2 suffix).
  return bool(re.search(r'-c\d+$', slavename))