code: def _codec_can_decode_with_surrogatepass(codec, _cache={}):
      
  
      try:
          return _cache[codec]
      except KeyError:
          try:
              u"\ud83d".encode(
                  codec, _surrogatepass).decode(codec, _surrogatepass)
          except UnicodeDecodeError:
              _cache[codec] = False
          else:
              _cache[codec] = True
          return _cache[codec]
docs: Returns if a codec supports the surrogatepass error handler when
      decoding. Some codecs were broken in Python <3.4