def get_device_hostnames(device_response):
    """Return a dictionary that maps device mac addresses to hostnames."""
    return dict(
        zip(
            [value["mac"] for value in device_response["data"]],
            [value["hostname"] for value in device_response["data"]],
        )
    )