class_docstr: HuggingFace's ByteLevelBPE Tokenizer.
  
  Fast because Rust.
class_docstr_tok: ["HuggingFace","'s","ByteLevelBPE","Tokenizer",".","Fast","because","Rust","."]
docstr: Add special tokens to the tokenizer and dict_agent.
docstr_tok: ["Add","special","tokens","to","the","tokenizer","and","dict_agent","."]
code: def add_special_tokens(self, dict_agent, special_tokens: List[str]):
      """
      Add special tokens to the tokenizer and dict_agent.
      """
      logging.debug(
          f"adding the following special tokens: {special_tokens}"
      )
      self.tokenizer.add_special_tokens(special_tokens)  # add to HF
  
      for tok in special_tokens:
          parlai_key = dict_agent[tok]
          hf_key = self.tokenizer.token_to_id(tok)
          self.special_tok_map[parlai_key] = hf_key
  
imports: from parlai.core.params import ParlaiParser
  from abc import ABC, abstractmethod
  from functools import lru_cache
  import json
  import os
  import random
  import re
  from typing import Dict, List, Optional, Set, Tuple
  from typing_extensions import final
  from parlai.core.build_data import download, make_dir
  from parlai.core.opt import Opt
  from parlai.utils.misc import warn_once
  from parlai.utils.typing import TShared
  from parlai.utils.io import PathManager
  import parlai.utils.logging
label_desc: Use image node_id 4 for calling the HuggingFaceBpeHelper obj's underlying member method code with example usage: obj.add_special_tokens(dict_agent, special_tokens) without return types