def _shared(permissions, groupid):
    "\n    Return True if the given permissions object represents shared permissions.\n\n    Return False otherwise.\n\n    Reduces the client's complex permissions dict to a simple shared boolean.\n\n    :param permissions: the permissions dict sent by the client in an\n        annotation create or update request\n    :type permissions: dict\n\n    :param groupid: the groupid of the annotation that the permissions dict\n        applies to\n    :type groupid: unicode\n\n    "
    return (permissions['read'] == ['group:{id}'.format(id=groupid)])
Return True if the given permissions object represents shared permissions.

Return False otherwise.

Reduces the client's complex permissions dict to a simple shared boolean.

:param permissions: the permissions dict sent by the client in an
    annotation create or update request
:type permissions: dict

:param groupid: the groupid of the annotation that the permissions dict
    applies to
:type groupid: unicode
def _shared(permissions, groupid):
    "\n    Return True if the given permissions object represents shared permissions.\n\n    Return False otherwise.\n\n    Reduces the client's complex permissions dict to a simple shared boolean.\n\n    :param permissions: the permissions dict sent by the client in an\n        annotation create or update request\n    :type permissions: dict\n\n    :param groupid: the groupid of the annotation that the permissions dict\n        applies to\n    :type groupid: unicode\n\n    "
    return (permissions['read'] == ['group:{id}'.format(id=groupid)])