code: def normalize_codec_name(name):
      '''Return the Python name of the encoder/decoder
  
      Returns:
          str, None
      '''
      name = UnicodeDammit.CHARSET_ALIASES.get(name.lower(), name)
  
      try:
          return codecs.lookup(name).name
      except (LookupError, TypeError, ValueError):
          # TypeError occurs when name contains \x00 (ValueError in Py3.5)
          pasf normalize_codec_name(name):
      '''Return the Python name of the encoder/decoder
  
      Returns:
          str, None
      '''
      name = UnicodeDammit.CHARSET_ALIASES.get(name.lower(), name)
  
      try:
          return codecs.lookup(name).name
      except (LookupError, TypeError, ValueError):
          # TypeError occurs when name contains \x00 (ValueError in Py3.5)
          pass
docs: Return the Python name of the encoder/decoder
  
      Returns:
          str, None