<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_images_filter():
 """It prints all products with metatada image, and obtain all the images in all regions. """

    KEYSTONE = os.environ.get('OS_KEYSTONE')
    TENANT_ID = os.environ.get('OS_TENANT_ID')
    USERNAME = os.environ.get('OS_USERNAME')
    PASSWORD = os.environ.get('OS_PASSWORD')

    token = get_token(KEYSTONE,
                      TENANT_ID,
                      USERNAME,
                      PASSWORD)
    endpoints = get_endpoints(KEYSTONE,
                              TENANT_ID,
                              USERNAME,
                              PASSWORD)

    products = get_product_with_image_filtered(endpoints['sdc']['Spain2'],
                                               token, TENANT_ID)

    for product in products:
        image_list = product[1].split(' ')
        image_ids = ''
        for image in image_list:
            try:
                try:
                    image_ids.index(image)
                    continue
                except:
                    image_name = check_image_in_spain(
                        endpoints['image']['Spain2'], image, token)
                    if image_name is None:
                        continue
                    image_ids = image_ids + ' ' + image
                    for endpoint_glace in endpoints['image']:
                        print endpoint_glace
		        if endpoint_glace in EXCLUDED_REGIONS:
                            continue
                        image_id = get_image_id_another_region(
                            endpoints['image'][endpoint_glace],
                            image_name, token)
                        if image_id is None:
                            continue
                        image_ids = image_ids + ' ' + image_id
                    update_metadata_image (endpoints['sdc']['Spain2'],
                       token, TENANT_ID, product[0], image_ids)
            except Exception, e:
                print 'Error with image ' + image + ' ' + e.message
        print 'Product ' + product[0] + ' ' + image_ids