def _freezer_lookup(freezer_string):
sanitized = freezer_string.lower().strip()<EOL>for freezer in FREEZER.ALL:<EOL><INDENT>freezer_instance = freezer()<EOL>freezer_name = six.text_type(freezer_instance)<EOL>if freezer_name == six.text_type(sanitized):<EOL><INDENT>return freezer<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if sanitized != freezer_string:<EOL><INDENT>raise ValueError(u"<STR_LIT>".format(freezer_string,<EOL>sanitized))<EOL><DEDENT>else:<EOL><INDENT>raise ValueError(u"<STR_LIT>".format(freezer_string))<EOL><DEDENT><DEDENT>
Translate a string that may be a freezer name into the internal freezer constant

:param freezer_string
:return: