code: def _create_text_encoder(
      config: ml_collections.ConfigDict,
      **kwargs,
  ) -> TextEncoder:
      return _create_encoder(
          config,
          key_prefix="text",
          class_map=TEXT_ENCODER_CLASS_MAP,
          **kwargs,
      )
  
imports: from collections.abc import Mapping
  from typing import Optional
  from typing import TypeVar
  import jax.numpy
  import ml_collections
  from scenic.model_lib.base_models import base_model
  from scenic.projects.lang4video.model import loss
  from scenic.projects.lang4video.model.base_encoders import Encoder
  from scenic.projects.lang4video.model.base_encoders import ImageEncoder
  from scenic.projects.lang4video.model.base_encoders import ImageTextEncoder
  from scenic.projects.lang4video.model.base_encoders import TextEncoder
  from scenic.projects.lang4video.model.bert import BertTextEncoder
  from scenic.projects.lang4video.model.clip import ClipImageEncoder
  from scenic.projects.lang4video.model.clip import ClipTextEncoder
  from scenic.projects.lang4video.model.mlp import MlpImageEncoder
  from scenic.projects.lang4video.model.mlp import MlpTextEncoder
  from scenic.projects.lang4video.model.sequential import SequentialImageEncoder
  from scenic.projects.lang4video.model.sequential import SequentialTextEncoder
  from scenic.projects.lang4video.model.t5 import T5TextEncoder
  from scenic.projects.lang4video.model.transformer import TransformerImageEncoder
  from scenic.projects.lang4video.model.transformer import TransformerTextEncoder
label_desc: Use image node_id 3 for calling a global function with example usage: _create_text_encoder(config) and returns: _create_encoder