code: def tokenize(text: str, max_token_len: int = 77) -> List[int]:
      tokenizer = build_tokenizer()
      sot_token = tokenizer.encoder["<|startoftext|>"]
      eot_token = tokenizer.encoder["<|endoftext|>"]
      tokens = [sot_token] + tokenizer.encode(text) + [eot_token]
      output = [0] * max_token_len
      output[: min(max_token_len, len(tokens))] = tokens[:max_token_len]
      return output
  
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 1 for calling a global function with example usage: tokenize(text, max_token_len) and returns: output