code: def arguments_text_encoder(
      parser: argparse.ArgumentParser,
  ) -> argparse.ArgumentParser:
      """Register arguments of all text encoders."""
      # add arguments for text_encoder
      parser = BaseTextEncoder.add_arguments(parser)
  
      # add class specific arguments
      parser = TEXT_ENCODER_REGISTRY.all_arguments(parser)
      return parser
  
imports: import argparse
  from cvnets.text_encoders.base_text_encoder import BaseTextEncoder
  from utils import logger
  from utils.registry import Registry
label_desc: Use image node_id 1 for calling a global function with example usage: arguments_text_encoder(parser) and returns: parser