<gh_stars>1-10
def analysis(image_json, context):
    logger = context['logger']
    client_images = context['images']

    logger.info("Received image from rabbitMQ: {}".format(image_json))
    client_images.post_image(image_json)
    # image_json = {
    #       "name": "sameersbn/postgresql:9.4-17",
    #       "repo_name": "sameersbn/postgresql",
    #       "tag": "9.4-17",
    #       "pull_count": 1430790,
    #       "star_count": 107,
    #       "repo_owner": None,
    #       "short_description": "",
    #       "is_automated": True,
    #       "is_official": False,
    #        "full_size": 81978718,
    #       "images": [{"size": 81978718}], "id": 2384003,
    #       "repository": 14080, "creator": 3263,
    #       "last_updater": 3263,
    #       "last_updated": "2016-03-22T06:46:03.447956Z",
    #       "image_id": None,
    #       "v2": True}
    #  }
    return True

def analysis(image_json, context):
    logger = context['logger']
    client_images = context['images']

    logger.info("Received image from rabbitMQ: {}".format(image_json))
    client_images.post_image(image_json)
    # image_json = {
    #       "name": "sameersbn/postgresql:9.4-17",
    #       "repo_name": "sameersbn/postgresql",
    #       "tag": "9.4-17",
    #       "pull_count": 1430790,
    #       "star_count": 107,
    #       "repo_owner": None,
    #       "short_description": "",
    #       "is_automated": True,
    #       "is_official": False,
    #        "full_size": 81978718,
    #       "images": [{"size": 81978718}], "id": 2384003,
    #       "repository": 14080, "creator": 3263,
    #       "last_updater": 3263,
    #       "last_updated": "2016-03-22T06:46:03.447956Z",
    #       "image_id": None,
    #       "v2": True}
    #  }
    return True
# image_json = { #       "name": "sameersbn/postgresql:9.4-17", #       "repo_name": "sameersbn/postgresql", #       "tag": "9.4-17", #       "pull_count": 1430790, #       "star_count": 107, #       "repo_owner": None, #       "short_description": "", #       "is_automated": True, #       "is_official": False, #        "full_size": 81978718, #       "images": [{"size": 81978718}], "id": 2384003, #       "repository": 14080, "creator": 3263, #       "last_updater": 3263, #       "last_updated": "2016-03-22T06:46:03.447956Z", #       "image_id": None, #       "v2": True} #  }