code: def __init__(self, model: Union[Path, str]):
      assert check_argument_types()
  
      if not is_transformers_available:
          raise ImportError(
              "`transformers` is not available. Please install it via `pip install"
              " transformers` or `cd /path/to/espnet/tools && . ./activate_python.sh"
              " && ./installers/install_transformers.sh`."
          )
  
      self.model = str(model)
      # NOTE(kamo):
      # Don't build tokenizer in __init__()
      # because it's not picklable and it may cause following error,
      # "TypeError: can't pickle SwigPyObject objects",
      # when giving it as argument of "multiprocessing.Process()".
      self.tokenizer = None
  
file_path: espnet/espnet2/text/hugging_face_tokenizer.py
imports: from pathlib import Path
  from typing import Iterable, List, Union
  from typeguard import check_argument_types
  from espnet2.text.abs_tokenizer import AbsTokenizer
label_desc: Use image node_id 1 to create a new HuggingFaceTokenizer object from inherited base classes: AbsTokenizer with example: obj = HuggingFaceTokenizer(model)