def METHOD_NAME(item_schema, item_lib_martigny_data_tmp):
    """Test notes for item jsonschemas."""
    validate(item_lib_martigny_data_tmp, item_schema)
    item_lib_martigny_data_tmp['notes'] = []
    public_note = dict(type=ItemNoteTypes.GENERAL, content='public note')
    staff_note = dict(type=ItemNoteTypes.STAFF, content='staff note')
    dummy_note = dict(type='dummy', content='dummy note')
    long_note = dict(type=ItemNoteTypes.CHECKIN, content='note' * 501)
    item_lib_martigny_data_tmp['notes'] = [public_note]
    validate(item_lib_martigny_data_tmp, item_schema)
    item_lib_martigny_data_tmp['notes'] = [public_note, staff_note]
    validate(item_lib_martigny_data_tmp, item_schema)
    # add a not-valid note type should raise a validation error
    with pytest.raises(ValidationError):
        item_lib_martigny_data_tmp['notes'] = [dummy_note]
        validate(item_lib_martigny_data_tmp, item_schema)
    # add a too long note content
    with pytest.raises(ValidationError):
        item_lib_martigny_data_tmp['notes'] = [long_note]
        validate(item_lib_martigny_data_tmp, item_schema)