def METHOD_NAME(context: Context,
                                data_dict: DataDict) -> AuthResult:
    '''Checks if a user is allowed to remove collaborators from a dataset
    See :py:func:`~ckan.authz.can_manage_collaborators` for details
    '''
    user = context['user']
    model = context['model']
    pkg = model.Package.get(data_dict['id'])
    user_obj = model.User.get(user)
    assert pkg and user_obj
    if not authz.can_manage_collaborators(pkg.id, user_obj.id):
        return {
            'success': False,
            'msg': _('User %s not authorized to remove'
                     ' collaborators from this dataset') % user}
    return {'success': True}