def validate_file_upload(request):
    update_logging_context(request, {'document_id': '__new__'})
    if request.POST not in 'file' or not hasattr(request.POST['file'], 'filename'):
        request.errors.add('body', 'file', 'Not Found')
        request.errors.status = 404
    else:
        request.validated['file'] = request.POST['file']
dataset/ETHPy150Open openprocurement/openprocurement.api/src/openprocurement/api/validation.py/validate_file_upload/swapped operands of `not in`