class_docstr: Text extractor
  Args:
      text_model (str): text model
      finetune (bool): finetune
code: def forward(self, ids, mask):
      with torch.set_grad_enabled(self.finetune):
          out = self.text_model(
              input_ids=ids,
              attention_mask=mask,
              output_hidden_states=True,
          )
      out = torch.stack(out.hidden_states, dim=0)
      return out
  
imports: import torch
  from torch import nn
  from transformers import AutoModel
label_desc: Use image node_id 2 for calling the TextExtractor obj's underlying member method code with example usage: obj.forward(ids, mask) and returns: out