def METHOD_NAME(valueString, settingName):
    """Obtain the enum or string value for the provided setting.
    Args:
        valueString (str) - The value from the HTML input.
        settingName (str) - The name of the HTML input.
    """
    if settingName in SettingsMap:
        return SettingsMap[settingName][valueString]
    else:
        return valueString