'Retrieves a list of the VM Images from the image repository that is
associated with the specified subscription.'

def list_vm_images(self, location=None, publisher=None, category=None):

    path = self._get_vm_image_path()
    query = ''
    if location:
        query += ('&location=' + location)
    if publisher:
        query += ('&publisher=' + publisher)
    if category:
        query += ('&category=' + category)
    if query:
        path = ((path + '?') + query.lstrip('&'))
    return self._perform_get(path, VMImages)
