import requests


def get_report_bytes(report_data):
    """Downloads report described by report_data, returns as bytes object."""
    if len(report_data["urls"]) > 1:
        # not sure when this would ever be the case, need to investigate
        raise NotImplementedError("Report contains multiple urls")
    r = requests.get(report_data["urls"][0])
    return r.content