def notify_subscriptions_removed(user_profile: UserProfile, streams: Iterable[Stream], no_log: bool=False) -> None:
    if (not no_log):
        log_event({'type': 'subscription_removed', 'user': user_profile.email, 'names': [stream.name for stream in streams], 'realm': user_profile.realm.string_id})
    payload = [dict(name=stream.name, stream_id=stream.id) for stream in streams]
    event = dict(type='subscription', op='remove', subscriptions=payload)
    send_event(user_profile.realm, event, [user_profile.id])
def notify_subscriptions_removed(user_profile: UserProfile, streams: Iterable[Stream], no_log: bool=False) -> None:
    if (not no_log):
        log_event({'type': 'subscription_removed', 'user': user_profile.email, 'names': [stream.name for stream in streams], 'realm': user_profile.realm.string_id})
    payload = [dict(name=stream.name, stream_id=stream.id) for stream in streams]
    event = dict(type='subscription', op='remove', subscriptions=payload)
    send_event(user_profile.realm, event, [user_profile.id])