import requests


def get_image_file(ID, filename):
    """
    Get image file
    Args:
        ID (str): user name
        filename (str): file name

    Returns:
        r6.json()(dict or str): Dictionary with keys
                                File: filename
                                Image: Image in b64 tiff format
                                Process: processing algorithm applied
        If user/image does not exist, an error message will
        be returned to the client.

    """
    imjson = {
        "username": ID,
        "filename": filename
    }
    r6 = requests.get("http://vcm-9030.vm.duke.edu:5000/api/get_image",
                      json=imjson)
    return r6.json()