def _parse_status_update_subscription(response: object) -> StatusUpdateSubscription:
    if ((not isinstance(response, list)) or (len(response) == 0)):
        raise incremental.InvalidServerResponse(f'Status update subscription must be a nonempty list. Got {response}')
    kind = response[0]
    if (not isinstance(kind, str)):
        raise incremental.InvalidServerResponse(f'Response kind of a status update must be a string. Got {response}')
    return StatusUpdateSubscription(kind=kind)
def _parse_status_update_subscription(response: object) -> StatusUpdateSubscription:
    if ((not isinstance(response, list)) or (len(response) == 0)):
        raise incremental.InvalidServerResponse(f'Status update subscription must be a nonempty list. Got {response}')
    kind = response[0]
    if (not isinstance(kind, str)):
        raise incremental.InvalidServerResponse(f'Response kind of a status update must be a string. Got {response}')
    return StatusUpdateSubscription(kind=kind)