@classmethod
  def GetDescription(cls, identity_key):
    identity_type, value = Identity.SplitKey(identity_key)
    if identity_type == 'Email':
      return value
    elif identity_type == 'FacebookGraph':
      return 'your Facebook account'
    elif identity_type == 'Phone':
      phone = phonenumbers.parse(value)
      return phonenumbers.format_number(phone, phonenumbers.PhoneNumberFormat.INTERNATIONAL)
    elif identity_type == 'Local':
      return 'local identity'
    raise InvalidRequestError('Scheme for identity %s unknown.' % identity_key)
Returns a description of the specified identity key suitable for UI display.
dataset/ETHPy150Open viewfinderco/viewfinder/backend/db/identity.py/Identity.GetDescription