class_docstr: Loads tokenizers used by S2T Transformer models.
class_docstr_tok: ["Loads","tokenizers","used","by","S2T","Transformer","models","."]
code: def _load(
      self, path: Path, card: AssetCard
  ) -> S2TTransformerTokenizer:
      task = card.field("task").as_one_of(
          {"translation", "transcription"}
      )
  
      target_langs = card.field("target_langs").as_list(str)
  
      return S2TTransformerTokenizer(
          path,
          task,
          set(target_langs),
          default_target_lang=target_langs[0],
      )
  
file_path: fairseq2/src/fairseq2/models/s2t_transformer/loader.py
imports: from pathlib import Path
  from typing import Any, Dict, final
  from fairseq2.assets import AssetCard, asset_store, download_manager
  from fairseq2.models.s2t_transformer.builder import S2TTransformerConfig, create_s2t_transformer_model, s2t_transformer_archs
  from fairseq2.models.s2t_transformer.tokenizer import S2TTransformerTokenizer
  from fairseq2.models.transformer import TransformerModel
  from fairseq2.models.utils import ConfigLoader, ModelLoader, TokenizerLoaderBase
  from fairseq2.models.utils.checkpoint import convert_fairseq_checkpoint
  from fairseq2.typing import finaloverride
label_desc: Use image node_id 1 for calling the S2TTransformerTokenizerLoader obj's underlying member method code with example usage: obj._load(path, card) and returns: S2TTransformerTokenizer