def convert_scan_dict_to_string(scan_dict):
    """
    converts parsed ImageScanStatus dictionary to string.
    :param scan_dict:  {'HIGH': 64, 'MEDIUM': 269, 'INFORMATIONAL': 157, 'LOW': 127, 'CRITICAL': 17, 'UNDEFINED': 6}
    :return: HIGH 64, MEDIUM 269, INFORMATIONAL 157, LOW 127, CRITICAL 17, UNDEFINED 6
    """
    result = ''

    if not scan_dict:
        return result
    try:
        for key, value in scan_dict.items():
            result = result + key + " " + str(value) + ", "
    except AttributeError:
        return "Failed to retrieve repository scan results"

    return result[:len(result)-2]