def METHOD_NAME(self, view_kwargs):
    if view_kwargs.get('event_identifier'):
        event = safe_query_kwargs(
            Event, view_kwargs, 'event_identifier', 'identifier'
        )
        view_kwargs['event_id'] = event.id
    if view_kwargs.get('event_id'):
        event = safe_query_kwargs(Event, view_kwargs, 'event_id')
        view_kwargs['id'] = event.group_id
    if view_kwargs.get('users_groups_roles_id') is not None:
        users_groups_role = safe_query_kwargs(
            UsersGroupsRoles,
            view_kwargs,
            'users_groups_roles_id',
        )
        view_kwargs['id'] = users_groups_role.role_id
    if view_kwargs.get('user_follow_group_id') is not None:
        user_follow_group = safe_query_kwargs(
            UserFollowGroup,
            view_kwargs,
            'user_follow_group_id',
        )
        view_kwargs['id'] = user_follow_group.group_id