def METHOD_NAME(
        app,
        document,
        item_lib_martigny_data,
        loc_public_martigny,
        item_type_standard_martigny):
    """Create item of martigny library."""
    data = deepcopy(item_lib_martigny_data)
    data['barcode'] = 'masked'
    data['pid'] = f'maked-{data["pid"]}'
    data['_masked'] = True
    item = Item.create(
        data=data,
        delete_pid=False,
        dbcommit=True,
        reindex=True)
    flush_index(ItemsSearch.Meta.index)
    yield item
    item.delete(True, True, True)