def get_user_profile_model(app_label=None):
    """
    This function should return the user profile class dynamically.

    Assuming there is only one model class with a OneToOne relationship
    with Django's `User` model, this function tries to find and return it.
    I consider it a good idea for other models that need to have a relation
    to `User` model, to instead define the relationsship to user profile
    model. This provision has the added advantage that makes it easier
    to port the application to other web frameworks.

    This function should work like `django.contrib.auth.get_user_mode()`,
    except for finding the `UserProfile` or similar model.

    Search only among the models of the given app name, if provided.
    """
    pass
