<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(profile_name):
 """ Used to create Profile objects in the database A profile needs to exists before an EncodedVideo object can be created. Args: profile_name (str):
 ID of the profile Raises: ValCannotCreateError: Raised if the profile name is invalid or exists """

    try:
        profile = Profile(profile_name=profile_name)
        profile.full_clean()
        profile.save()
    except ValidationError as err:
        raise ValCannotCreateError(err.message_dict)