class_docstr: Base class for text encoder
class_docstr_tok: ["Base","class","for","text","encoder"]
code: def forward(
      self,
      text_tokens: Tensor,
      key_padding_mask: Optional[Tensor] = None,
      attn_mask: Optional[Tensor] = None,
      *args,
      **kwargs,
  ) -> Any:
      raise NotImplementedError
  
file_path: ml-cvnets/cvnets/text_encoders/base_text_encoder.py
imports: import argparse
  from typing import Any, Dict, Optional
  import torch
  from torch import Tensor, nn
  from cvnets import parameter_list
  from cvnets.layers import norm_layers_tuple
  from cvnets.misc.init_utils import initialize_weights
  from utils import logger
  from utils.ddp_utils import is_master
label_desc: Use image node_id 6 for calling the BaseTextEncoder obj's underlying member method code with example usage: obj.forward(text_tokens, key_padding_mask, attn_mask) without return types