in build_obelics/10_final_cleaning.py [0:0]
def func_filter_final_cleaning_doc_level(example):
texts_example = example["texts"]
texts = [txt for txt in texts_example if txt]
images = [txt for txt in texts_example if not txt]
if not texts or not images:
return False
return True