code: def _init_text_embeddings(self, attr="text"):
      if "embeddings" not in attr:
          attr += "_embeddings"
  
      text_embeddings = []
      text_embeddings_list_config = self.config[attr]
  
      embeddings_out_dim = 0
  
      for text_embedding in text_embeddings_list_config:
          embedding_type = text_embedding.type
          embedding_kwargs = copy.deepcopy(text_embedding.params)
  
          self._update_text_embedding_args(embedding_kwargs)
  
          embedding = TextEmbedding(embedding_type, **embedding_kwargs)
  
          text_embeddings.append(embedding)
          embeddings_out_dim += embedding.text_out_dim
  
      setattr(self, attr + "_out_dim", embeddings_out_dim)
      setattr(self, attr, nn.ModuleList(text_embeddings))
  
imports: import copy
  import omegaconf
  import torch
  from mmf.common.registry import registry
  from mmf.models.base_model import BaseModel
  from mmf.modules.embeddings import ImageFeatureEmbedding, MultiHeadImageFeatureEmbedding, PreExtractedEmbedding, TextEmbedding
  from mmf.modules.layers import ClassifierLayer, ModalCombineLayer
  from mmf.utils.build import build_image_encoder
  from torch import nn
label_desc: Use image node_id 6 for calling the Pythia obj's underlying member method code with example usage: obj._init_text_embeddings(attr) without return types