def EntityGroupName(entity):
  element = entity.path().element(0)
  if element.has_id():
    return str(element.id())
  elif element.has_name():
    return element.name()
  else:

    return 'None'
test with empty string URL
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/analytics/entity.py/EntityGroupName--crossover with--dataset/ETHPy150Open alecthomas/voluptuous/voluptuous/tests/tests.py/test_url_validation_with_empty_string