class_docstr: CLIP text encoder.
class_docstr_tok: ["CLIP","text","encoder","."]
code: def get_pretrained_vars(self) -> tuple[FrozenDict, FrozenDict]:
      if self.config_name == "debug":
          return flax.core.freeze({}), flax.core.freeze({})
      else:
          clip_model_vars = clip_model.load_model_vars(self.config_name)
  
          model_vars = {
              k: {k2: v2 for k2, v2 in v.items() if k2 == "text"}
              for k, v in clip_model_vars.items()
          }
  
          params = model_vars.pop("params")
          params = jax.tree_util.tree_map(
              lambda x: x.astype(jnp.float32), params
          )
          params = flax.core.freeze(params)
  
          model_state = flax.core.freeze(model_vars)
  
          return params, model_state
  
file_path: scenic/scenic/projects/lang4video/model/clip.py
imports: from typing import Optional
  import flax
  from flax import linen
  from flax.core.frozen_dict import FrozenDict
  import jax
  import jax.numpy
  from scenic.projects.baselines.clip import layers
  from scenic.projects.baselines.clip import model
  from scenic.projects.lang4video.model.base_encoders import ImageEncoder
  from scenic.projects.lang4video.model.base_encoders import TextEncoder
label_desc: Use image node_id 2 for calling the ClipTextEncoder obj's underlying member method code with example usage: obj.get_pretrained_vars() and returns: flax,  flax, params,  model_state