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

def get_all_creators_to_which_learner_has_subscribed ( user_id ) : subscriptions_model = user_models . UserSubscriptionsModel . get ( user_id , strict = False ) return ( subscriptions_model . creator_ids if subscriptions_model else [ ] )
returns a list with ids of all the creators to which this learner has subscribed .