code: def __init__(self, encoder):
      super(PromptBartEncoder, self).__init__()
      self.bart_encoder = encoder
  
imports: import torch
  from torch import nn
  from torch.nn import functional
  from transformers.models.bart.configuration_bart import BartConfig
  from .modeling_bart import BartModel
  from ..utils.util import avg_token_embeddings, seq_to_mask, get_model_device
  from functools import partial
  from typing import Union
label_desc: Use image node_id 1 to create a new PromptBartEncoder object from inherited base classes: nn with example: obj = PromptBartEncoder(encoder)