code: def get_tokenizer(
      tokenizer_type: str,
      tokenizer_vocab_file: str,
      pretrained_model_name_or_path: str,
  ):
      """Returns a tokenizer object based on the tokenizer type."""
      return get_tokenizer_from_registry(tokenizer_type)(
          vocab_file=tokenizer_vocab_file,
          pretrained_model_name_or_path=pretrained_model_name_or_path,
      )
  
imports: import logging
  import re
  import unicodedata
  from collections import Counter
  from dataclasses import dataclass
  from enum import Enum
  from typing import Dict, List, Optional, Set, Union
  import numpy
  from dateutil.parser import parse
  from ludwig.constants import PADDING_SYMBOL, START_SYMBOL, STOP_SYMBOL, UNKNOWN_SYMBOL
  from ludwig.data.dataframe.base import DataFrameEngine
  from ludwig.data.dataframe.pandas import PANDAS
  from ludwig.utils.fs_utils import open_file
  from ludwig.utils.math_utils import int_type
  from ludwig.utils.tokenizers import get_tokenizer_from_registry
  from ludwig.utils.types import Series
label_desc: Use image node_id 24 for calling a global function with example usage: get_tokenizer(tokenizer_type, tokenizer_vocab_file, pretrained_model_name_or_path) and returns: get_tokenizer_from_registry