def get_collection_ids_subscribed_to(user_id):
 subscriptions_model = user_models.UserSubscriptionsModel.get(user_id, strict=False)
 return (subscriptions_model.collection_ids if subscriptions_model else [])

def get_collection_ids_subscribed_to ( user_id ) : subscriptions_model = user_models . UserSubscriptionsModel . get ( user_id , strict = False ) return ( subscriptions_model . collection_ids if subscriptions_model else [ ] )
returns a list with ids of all collections that the given user subscribes to .