It get the product for an concrete image
    :param sdc_url: the sdc url
    :param token: the valid token
    :param vdc: the user

def get_product_with_image_filtered(sdc_url, token, vdc):
    """It get the product for an concrete image
    :param sdc_url: the sdc url
    :param token: the valid token
    :param vdc: the user
    """
    url = "%s/%s" % (sdc_url, "catalog/product")
    headers = {'X-Auth-Token': token, 'Tenant-Id': vdc,
               'Accept': "application/json"}

    response = http.get(url, headers)

    if response.status != 200:
        print 'error to get the product with image filtered ' + str(response.status)
        sys.exit(1)
    else:
        data = json.loads(response.read())
        if data is None:
            return None
        products = []
        for product in data:
            try:
                for metadata in product['metadatas']:
                    if metadata == 'value':
                        if product['metadatas']['key'] == 'image'\
                                and product['metadatas']['value'] != '':
                            value = []
                            value.append(product['name'])
                            value.append(product['metadatas']['value'])
                            products.append(value)

                    if metadata['key'] == 'image' and metadata['value'] != '':
                        value = []
                        value.append(product['name'])
                        value.append(metadata['value'])
                        products.append(value)

            except:
                continue
        return products