<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def algorithm_from_text(text):
 """Convert text into a DNSSEC algorithm value @rtype: int"""


    value = _algorithm_by_text.get(text.upper())
    if value is None:
        value = int(text)
    return value