'List images available
Note:  Currently only returns the default \'base OS images\'
provided by DimensionData. Customer images (snapshots)
use ex_list_customer_images
:keyword ex_location: Filters the node list to nodes that are
located in this location
:type    ex_location: :class:`NodeLocation` or ``str``
:return: List of images available
:rtype: ``list`` of :class:`NodeImage`'

def list_images(self, location=None):

    params = {}
    if (location is not None):
        params['datacenterId'] = self._location_to_location_id(location)
    return self._to_images(self.connection.request_with_orgId_api_2('image/osImage', params=params).object)
