code: def get_encoder(cls, config=None, **kwargs):
      return cls.encoder(**kwargs)
  
imports: import os
  from urllib.parse import urljoin
  from finetune.base_models import SourceModel
  from finetune.base_models.bert.encoder import BERTEncoder, BERTEncoderMultuilingal, BERTEncoderLarge, DistilBERTEncoder, LayoutLMEncoder
  from finetune.base_models.bert.roberta_encoder import RoBERTaEncoder, RoBERTaEncoderV2, RoBERTaEncoderXDoc
  from finetune.base_models.bert.featurizer import bert_featurizer, layoutlm_featurizer, xdoc_featurizer, table_roberta_featurizer_twinbert
  from finetune.util.context_utils import get_context_layoutlm, get_context_doc_rep
  from finetune.util.download import BERT_BASE_URL, GPT2_BASE_URL, ROBERTA_BASE_URL, LAYOUTLM_BASE_URL, FINETUNE_BASE_FOLDER
  from finetune.util.featurizer_fusion import fused_featurizer
label_desc: Use image node_id 1 for calling the DocRep obj's underlying member method code with example usage: obj.get_encoder(cls, config) and returns: cls