code: def get_tokens(text: str) -> List[int]:
      """
      ### Get token ids
  
      :param text: is the text to tokenize
      :return: the token ids
      """
      global _TOKENIZER
      if _TOKENIZER is None:
          _TOKENIZER = get_tokenizer()
      return _TOKENIZER.encode_batch([text])[0].ids
  
file_path: annotated_deep_learning_paper_implementations/labml_nn/neox/utils/__init__.py
imports: import typing
  from typing import List, Optional
  import torch
  from labml import logger
  from labml.logger import Text
  from labml_nn.neox.tokenizer import get_tokenizer
label_desc: Use image node_id 1 for calling a global function with example usage: get_tokens(text) and returns: _TOKENIZER