all_of_categories = getattr(item.function, "all_categories", set())
any_of_categories = getattr(item.function, "any_categories", set())
all_of_categories = getattr(item.function, "all_categories", set())
any_of_categories = getattr(item.function, "any_categories", set())