code: def _replace_tokens(
      vocab, unk_token, pad_token, bos_token, eos_token, mask_token
  ):
      replacements = {
          vocab.unk_token: unk_token,
          vocab.pad_token: pad_token,
          vocab.bos_token: bos_token,
          vocab.eos_token: eos_token,
          vocab.mask_token: mask_token,
      }
      vocab.replace_tokens(
          dict(filter(lambda x: x[0] in vocab, replacements.items()))
      )
      vocab.unk_token = unk_token
      vocab.pad_token = pad_token
      vocab.bos_token = bos_token
      vocab.eos_token = eos_token
      vocab.mask_token = mask_token
  
file_path: pytext/pytext/data/decoupled_data.py
imports: from typing import Dict, List, Optional, Type
  from .None import Batcher, Data
  from .data import RowData
  from .sources import DataSource
  from .tensorizers import Tensorizer
  from .utils import Vocabulary
label_desc: Use image node_id 2 for calling the DecoupledSeq2SeqData obj's underlying member method code with example usage: obj._replace_tokens(vocab, unk_token, pad_token, bos_token, eos_token, mask_token) without return types