code: def build_tokenizer(
      bpe_path: Optional[str] = DEFAULT_BPE_PATH,
      bpe_url: str = DEFAULT_BPE_URL,
      download_dir: str = download.DEFAULT_DOWNLOAD_DIR,
  ) -> simple_tokenizer.SimpleTokenizer:
      """Returns CLIP's tokenizer."""
      if bpe_path is None:
          bpe_path = download.download(bpe_url, download_dir)
          logging.info(
              "Downloaded vocabulary from %s to %s",
              bpe_url,
              download_dir,
          )
  
      return simple_tokenizer.SimpleTokenizer(bpe_path)
  
imports: from absl import logging
  import functools
  from typing import List, Optional
  from clip import simple_tokenizer
  from scenic.projects.baselines.clip import download
label_desc: Use image node_id 2 for calling a global function with example usage: build_tokenizer(bpe_path, bpe_url, download_dir) and returns: simple_tokenizer