code: def __init__(self, rel2id_path: str, rel2label_path: str, **kwargs):
      self.rel2id_path = rel2id_path
      self.rel2label_path = rel2label_path
      self.rel2id = read_json(str(expand_path(self.rel2id_path)))
      self.id2rel = {rel_id: rel for rel, rel_id in self.rel2id.items()}
      self.rel2label = read_json(str(expand_path(self.rel2label_path)))
  
file_path: DeepPavlov/deeppavlov/models/preprocessors/re_preprocessor.py
imports: from logging import getLogger
  from pathlib import Path
  from typing import Tuple, List, Union
  import numpy
  from transformers import BertTokenizer
  from deeppavlov.core.commands.utils import expand_path
  from deeppavlov.core.common.file import read_json
  from deeppavlov.core.common.registry import register
  from deeppavlov.core.models.component import Component
label_desc: Use image node_id 1 to create a new REPostprocessor object  with example: obj = REPostprocessor(rel2id_path, rel2label_path)