code: def setUp(self):
      self.tmpdirname = tempfile.mkdtemp()
  
      # DPR tok
      vocab_tokens = [
          "[UNK]",
          "[CLS]",
          "[SEP]",
          "[PAD]",
          "[MASK]",
          "want",
          "##want",
          "##ed",
          "wa",
          "un",
          "runn",
          "##ing",
          ",",
          "low",
          "lowest",
      ]
      dpr_tokenizer_path = os.path.join(
          self.tmpdirname, "dpr_tokenizer"
      )
      os.makedirs(dpr_tokenizer_path, exist_ok=True)
      self.vocab_file = os.path.join(
          dpr_tokenizer_path, DPR_VOCAB_FILES_NAMES["vocab_file"]
      )
      with open(self.vocab_file, "w", encoding="utf-8") as vocab_writer:
          vocab_writer.write("".join([x + "\n" for x in vocab_tokens]))
  
      # BART tok
      vocab = [
          "l",
          "o",
          "w",
          "e",
          "r",
          "s",
          "t",
          "i",
          "d",
          "n",
          "\u0120",
          "\u0120l",
          "\u0120n",
          "\u0120lo",
          "\u0120low",
          "er",
          "\u0120lowest",
          "\u0120newer",
          "\u0120wider",
          "<unk>",
      ]
      vocab_tokens = dict(zip(vocab, range(len(vocab))))
      merges = [
          "#version: 0.2",
          "\u0120 l",
          "\u0120l o",
          "\u0120lo w",
          "e r",
          "",
      ]
      self.special_tokens_map = {"unk_token": "<unk>"}
  
      bart_tokenizer_path = os.path.join(
          self.tmpdirname, "bart_tokenizer"
      )
      os.makedirs(bart_tokenizer_path, exist_ok=True)
      self.vocab_file = os.path.join(
          bart_tokenizer_path, BART_VOCAB_FILES_NAMES["vocab_file"]
      )
      self.merges_file = os.path.join(
          bart_tokenizer_path, BART_VOCAB_FILES_NAMES["merges_file"]
      )
      with open(self.vocab_file, "w", encoding="utf-8") as fp:
          fp.write(json.dumps(vocab_tokens) + "\n")
      with open(self.merges_file, "w", encoding="utf-8") as fp:
          fp.write("\n".join(merges))
  
imports: import json
  import os
  import shutil
  import tempfile
  import unittest
  from unittest.mock import patch
  import numpy
  from transformers import BartTokenizer
  from transformers.models.bert.tokenization_bert import VOCAB_FILES_NAMES
  from transformers.models.dpr.tokenization_dpr import DPRQuestionEncoderTokenizer
  from transformers.models.roberta.tokenization_roberta import VOCAB_FILES_NAMES
  from transformers.testing_utils import require_sentencepiece, require_tf, require_tokenizers, slow
  from transformers.utils import cached_property, is_datasets_available, is_faiss_available, is_tf_available
  from ..bart.test_modeling_tf_bart import TFBartModelTester
  from ..dpr.test_modeling_tf_dpr import TFDPRModelTester
label_desc: Use image node_id 1 for calling the TFRagTestMixin obj's underlying member method code with example usage: obj.setUp() without return types