docstr: Generate the output from transformer layers. Return the encoded layers.
  
  Warning: Empty shell for code to be implemented in other class.
docstr_tok: ["Generate","the","output","from","transformer","layers",".","Return","the","encoded","layers",".","Warning",":","Empty","shell","for","code","to","be","implemented","in","other","class","."]
code: def generate_encoded_layers(
      self, embedding, attention_mask
  ) -> List[Tensor]:
      """Generate the output from transformer layers. Return the encoded layers.
  
      Warning: Empty shell for code to be implemented in other class.
      """
  
imports: import logging
  from abc import ABC, abstractmethod
  from dataclasses import asdict, dataclass, field
  from typing import Any, Dict, List, NamedTuple, Optional, Tuple, Type
  from mmf.common.registry import registry
  from mmf.models import BaseModel
  from mmf.modules.encoders import IdentityEncoder
  from mmf.utils.modeling import get_bert_configured_parameters
  from omegaconf import MISSING, OmegaConf
  from torch import nn, Tensor
label_desc: Use image node_id 8 for calling the BaseTransformerBackend obj's underlying member method code with example usage: obj.generate_encoded_layers(embedding, attention_mask) without return types