<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_profile(self, user, save=False, **kwargs):
 """ Create a profile model. :param user: A user object :param save: If this is set, the profile will be saved to DB straight away :type save: bool """

        profile = self.get_model()(user=user, **kwargs)

        if save:
            profile.save()

        return profile