'Convert the data from a Azure response object into a location'

def _to_location(self, data):

    country = data.display_name
    if ('Asia' in data.display_name):
        country = 'Asia'
    if ('Europe' in data.display_name):
        country = 'Europe'
    if ('US' in data.display_name):
        country = 'US'
    if ('Japan' in data.display_name):
        country = 'Japan'
    if ('Brazil' in data.display_name):
        country = 'Brazil'
    vm_role_sizes = data.compute_capabilities.virtual_machines_role_sizes
    return AzureNodeLocation(id=data.name, name=data.display_name, country=country, driver=self.connection.driver, available_services=data.available_services, virtual_machine_role_sizes=vm_role_sizes)
