code: def __init__(self, name, base_encoding, mapping):
      self.name = name
      self.base_encoding = base_encoding
      self.mapping = mapping
      self.reverse = {v: k for k, v in mapping.items()}
      self.max_len = max(len(v) for v in mapping.values())
      self.info = codecs.CodecInfo(
          name=self.name, encode=self.encode, decode=self.decode
      )
      codecs.register_error(name, self.error)
  
file_path: catboost/contrib/python/fonttools/fontTools/encodings/codecs.py
imports: import codecs
  import encodings
label_desc: Use image node_id 1 to create a new ExtendCodec object from inherited base classes: codecs with example: obj = ExtendCodec(name, base_encoding, mapping)