def METHOD_NAME(request):
    """
    Creates a set of sample entries for guest users
    """
    if not settings.WGER_SETTINGS['ALLOW_GUEST_USERS']:
        return HttpResponseRedirect(reverse('software:features'))
    if (
        (
            (not request.user.is_authenticated or request.user.userprofile.is_temporary)
            and not request.session['has_demo_data']
        )
    ):
        # If we reach this from a page that has no user created by the
        # middleware, do that now
        if not request.user.is_authenticated:
            user = create_temporary_user(request)
            django_login(request, user)
        # OK, continue
        create_demo_entries(request.user)
        request.session['has_demo_data'] = True
        messages.success(
            request,
            _(
                'We have created sample workout, workout schedules, weight '
                'logs, (body) weight and nutrition plan entries so you can '
                'better see what  this site can do. Feel free to edit or '
                'delete them!'
            )
        )
    return HttpResponseRedirect(reverse('core:dashboard'))