class_docstr: Class to read the datasets in RuRED format
docstr: Turn labels to one hot encodings 
docstr_tok: ["Turn","labels","to","one","hot","encodings"]
code: def label_to_one_hot(self, label: int) -> List[int]:
      """Turn labels to one hot encodings"""
      relation = [0] * len(self.rel2id)
      relation[label] = 1
      return relation
  
file_path: DeepPavlov/deeppavlov/dataset_readers/rured_reader.py
imports: import json
  import os
  import random
  from typing import Dict, List, Tuple
  from pathlib import Path
  from logging import getLogger
  from deeppavlov.core.common.registry import register
  from deeppavlov.core.data.dataset_reader import DatasetReader
label_desc: Use image node_id 3 for calling the RuREDDatasetReader obj's underlying member method code with example usage: obj.label_to_one_hot(label) and returns: relation