code: def algorithm_from_text(text):
      
  
      value = _algorithm_by_text.get(text.upper())
      if value is None:
          value = int(text)
      return value
docs: Convert text into a DNSSEC algorithm value
      @rtype: int