def validate(self, value):
        if isinstance(value, dict):
            if 'date' not in value:
                value['date'] = None
            else:
                if value['date'] is not None:
                    raise EmitterValidationError(
                        'Emitted value must be None: {}'.format(value['date']))
dataset/ETHPy150Open dimagi/commcare-hq/corehq/ex-submodules/fluff/emitters.py/custom_null_emitter.validate/original