def get_shib_idp_en_name(names):
    '\n    Returns a name in English for a Shibboleth IDP, or the first available\n    name if no English name was provided.\n\n    Args:\n        names (list): list of {"lang": "", "value": ""} dictionaries\n            Example:\n            [\n                {\n                    "value": "University of Chicago",\n                    "lang": "en"\n                },\n                {\n                    "value": "Universidad de Chicago",\n                    "lang": "es"\n                }\n            ]\n\n    Returns:\n        str: Display name to use for this Shibboleth IDP\n    '
    for name in names:
        if (name.get('lang') == 'en'):
            return name['value']
    return names[0]['value']
Returns a name in English for a Shibboleth IDP, or the first available
name if no English name was provided.

Args:
    names (list): list of {"lang": "", "value": ""} dictionaries
        Example:
        [
            {
                "value": "University of Chicago",
                "lang": "en"
            },
            {
                "value": "Universidad de Chicago",
                "lang": "es"
            }
        ]

Returns:
    str: Display name to use for this Shibboleth IDP
def get_shib_idp_en_name(names):
    '\n    Returns a name in English for a Shibboleth IDP, or the first available\n    name if no English name was provided.\n\n    Args:\n        names (list): list of {"lang": , "value": } dictionaries\n            Example:\n            [\n                {\n                    "value": "University of Chicago",\n                    "lang": "en"\n                },\n                {\n                    "value": "Universidad de Chicago",\n                    "lang": "es"\n                }\n            ]\n\n    Returns:\n        str: Display name to use for this Shibboleth IDP\n    '
    for name in names:
        if (name.get('lang') == 'en'):
            return name['value']
    return names[0]['value']