def get_models_from_body_message(body):
    """
    Method to get model id, model blob id, model bucket from input rabbitmq
    message.

    :param body: rabbitmq message body
    :type body: dict
    :return: models ids, models blob ids, models, buckets
    """

    model_id = []
    models_blob_ids = []
    models_buckets = []

    for model_ids in body['Models']:
        model_id.append(model_ids['Id'])
        models_blob_ids.append(model_ids['Blob']['id'])
        models_buckets.append(model_ids['Blob']['bucket'])

    return model_id, models_blob_ids, models_buckets