def get_tag_value(x, key):
    if x is None:
        return ''
    result = [y['Value'] for y in x if y['Key'] == key]
    if result:
        return result[0]
    return ''
Get a value from tag
dataset/ETHPy150Open achiku/jungle/jungle/ec2.py/get_tag_value