examples/research_projects/visual_bert/utils.py/get_image_from_url
def get_image_from_url(url):
    response = requests.get(url)
    img = np.array(Image.open(BytesIO(response.content)))
    return img