import requests


def get_image_list(username):
    """
    Get list of processed image names

    Args:
        username (str): user name

    Returns:
        outfile (list or str): List of processed image names or error message

    """

    r5 = requests.get('http://vcm-9030.vm.duke.edu:5000/'
                      'api/get_name/image_list', json={"username": username})
    outfile = r5.json()
    return outfile