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

    if not isinstance(kwargs, dict):
        kwargs = {}

    params = {
        'action': 'DescribeImages',
        'provider': 'system',
        'zone': _get_specified_zone(kwargs, get_configured_provider()),
    }
    items = query(params=params)

    result = {}
    for image in items['image_set']:
        result[image['image_id']] = {}
        for key in image:
            result[image['image_id']][key] = image[key]

    return result
Escape params, combine and append them to base to generate a full URL.
dataset/ETHPy150Open saltstack/salt/salt/cloud/clouds/qingcloud.py/avail_images--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/_internal/graphy/backends/google_chart_api/util.py/EncodeUrl