import re


def not_raw(product_name):
    """
    Check if the product is of type RAW
    we check for this because we are not interested in
    creation and ingestion of a RAW dataset.
    :param product_name:
    :return:
    """
    match = re.search(r'([\w.-]+)_([\w.-]+)_([\w.-]+)__([\d])([\w])([\w.-]+)', product_name)
    if match:
        product_type = match.group(3)

        if product_type == "RAW":
            return False
        else: return True
    else:
        return True