def parse_es_tag_results(response):
    """Parses results of es_tag_query such that a list of dicts is returned"""
    to_return = []
    for hit in response:
        if tags := hit.to_dict().get('tags'):
            for key, value in tags.items():
                to_return.append({'name': key, 'value': value})
    return to_return