def is_valid_post(activity):
    content = activity['object']['content']
    if 'annotation' in activity:
        content += ' ' + activity['annotation']
    for product_group in ProductGroup.all_tags():
        result = re.search(product_group, content, flags=re.IGNORECASE)
        if result is not None:
            return True

    return False
Identify the product area.
dataset/ETHPy150Open GoogleDeveloperExperts/experts-app-backend/services/update_gplus.py/is_valid_post