def avail_locations(call=None):
    if call == 'action':
        raise SaltCloudSystemExit(
            'The avail_locations function must be called with '
            '-f or --function, or with the --list-locations option'
        )

    params = {
        'action': 'DescribeZones',
    }
    items = query(params=params)

    result = {}
    for region in items['zone_set']:
        result[region['zone_id']] = {}
        for key in region:
            result[region['zone_id']][key] = str(region[key])

    return result
Test if get_annotation behave as suspected
dataset/ETHPy150Open saltstack/salt/salt/cloud/clouds/qingcloud.py/avail_locations--crossover with--dataset/ETHPy150Open moonso/genmod/tests/utils/test_get_annotation.py/test_double_region