def check_options(cart_option, baseprice_option):
    """
    Checks if the options of a product in the cart matches with the options of the given
    product in the base-price file.
    :param cart_option: The dict containing options provided with the product in the cart
    :type cart_option: dict
    :param baseprice_option: The dict containing options of the product in the base-price file
    :type baseprice_option: dict
    :return: True or False
    """

    # Get the common keys between the cart options and base-price options. For example:
    # cart_option.keys() = {'size' 'colour', 'print_location'}
    # baseprice_option.keys() = {'size' 'colour'}
    # The result will be {'size' 'colour'}
    common_keys = set(baseprice_option.keys()).intersection(set(cart_option.keys()))

    # For each of the common keys, check if the values of the key in the base-price options
    # contain the values of the key in the cart option.
    # For example:
    # cart_option['size] = 'xl'
    # baseprice_option['size] = {'xl', '3xl'}
    # Then this will return "True", because it's a match.
    for key in common_keys:
        if cart_option[key] not in baseprice_option[key]:
            return False
    return True