def METHOD_NAME():  # pylint: disable=invalid-name
  res = _FromGlobal('xla_device', allow_override_from_cluster=True) == 'tpu'
  if res:
    assert not enable_asserts()  # asserts not supported on tpu
  return res