code: def get_decoder(cls, config: DecoderConfig, prefix: str) -> 'Decoder':
          
          config_type = type(config)
          if config_type not in cls.__registry:
              raise ValueError('Unsupported decoder configuration %s' % config_type.__name__)
          decoder_cls, suffix = cls.__registry[config_type]
          # TODO: move final suffix/prefix construction logic into config builder
          return decoder_cls(config=config, prefix=prefix + suffix)
docs: Creates decoder based on config type.
  
          :param config: Decoder config.
          :param prefix: Prefix to prepend for decoder.
  
          :return: Decoder instance.