code: def _normalize_codec(codec, _cache={}):
      
  
      try:
          return _cache[codec]
      except KeyError:
          _cache[codec] = codecs.lookup(codec).name
          return _cache[codec]
docs: Raises LookupError