class_docstr: Stand-in for HuggingFace if we do not have access to tokenizers.
  
  Only EVER used for a model used in interactive mode that was previously trained with
  HF BPE.
class_docstr_tok: ["Stand-in","for","HuggingFace","if","we","do","not","have","access","to","tokenizers",".","Only","EVER","used","for","a","model","used","in","interactive","mode","that","was","previously","trained","with","HF","BPE","."]
docstr: Override to load dicts if they exist.
  
  :return (bpe_data, json_path):
      bpe_data and path to encoder json
docstr_tok: ["Override","to","load","dicts","if","they","exist",".",":","return","(","bpe_data",",","json_path",")",":","bpe_data","and","path","to","encoder","json"]
code: def _build_data(self) -> Tuple[str, str]:
      """
      Override to load dicts if they exist.
  
      :return (bpe_data, json_path):
          bpe_data and path to encoder json
      """
      bpe_data = None
      json_path = ""
      vocab_path = ""
      if self.opt.get("dict_loaded"):
          dfname = self.opt["dict_file"]
          if PathManager.exists(f"{dfname}-merges.txt"):
              vocab_path = f"{dfname}-merges.txt"
          if PathManager.exists(f"{dfname}-vocab.json"):
              json_path = f"{dfname}-vocab.json"
  
      if PathManager.exists(vocab_path) and PathManager.exists(
          json_path
      ):
          with PathManager.open(vocab_path, "r", encoding="utf-8") as f:
              bpe_data = f.read()
      else:
          return super()._build_data()
  
      return bpe_data, json_path, vocab_path
  
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 1 for calling the SlowBytelevelBPE obj's underlying member method code with example usage: obj._build_data() and returns: bpe_data,  json_path,  vocab_path, super