docstr: - h,r->t: Given head and relation, predict target entities
      - hr: np.ndarray of shape (num_validation_triplets, 2)
            i-th row stores i-th (h,r)
      - t_candidate: np.ndarray of shape (num_validation_triplets, 1001)
            i-th row stores i-th candidates for the tail entities
            * Using mmap_mode
      - t_correct_index: np.ndarray of shape (num_validation_triplets,)
            i-th row stores the index (0<= index < 1001) of the true tail entity in t_candidate[i]
            i.e., (h[i],r[i],t_candidate[i][t_correct_index[i]]) is the true triplet.
docstr_tok: ["-","h",",","r-",">","t",":","Given","head","and","relation",",","predict","target","entities","-","hr",":","np.ndarray","of","shape","(","num_validation_triplets",",","2",")","i-th","row","stores","i-th","(","h",",","r",")","-","t_candidate",":","np.ndarray","of","shape","(","num_validation_triplets",",","1001",")","i-th","row","stores","i-th","candidates","for","the","tail","entities","*","Using","mmap_mode","-","t_correct_index",":","np.ndarray","of","shape","(","num_validation_triplets",",",")","i-th","row","stores","the","index","(","0","<","=","index","<","1001",")","of","the","true","tail","entity","in","t_candidate","[","i","]","i.e.",",","(","h","[","i","]",",","r","[","i","]",",","t_candidate","[","i","]","[","t_correct_index","[","i","]","]",")","is","the","true","triplet","."]
code: def valid_dict(self) -> Dict[str, Dict[str, np.ndarray]]:
      """
      - h,r->t: Given head and relation, predict target entities
          - hr: np.ndarray of shape (num_validation_triplets, 2)
                i-th row stores i-th (h,r)
          - t_candidate: np.ndarray of shape (num_validation_triplets, 1001)
                i-th row stores i-th candidates for the tail entities
                * Using mmap_mode
          - t_correct_index: np.ndarray of shape (num_validation_triplets,)
                i-th row stores the index (0<= index < 1001) of the true tail entity in t_candidate[i]
                i.e., (h[i],r[i],t_candidate[i][t_correct_index[i]]) is the true triplet.
      """
      if self._valid_dict is None:
          self._valid_dict = {}
          # h, r -> t
          self._valid_dict["h,r->t"] = {}
          self._valid_dict["h,r->t"]["hr"] = np.load(
              osp.join(self.processed_dir, "val_hr.npy")
          )
          self._valid_dict["h,r->t"]["t_candidate"] = np.load(
              osp.join(self.processed_dir, "val_t_candidate.npy"),
              mmap_mode="r",
          )
          self._valid_dict["h,r->t"]["t_correct_index"] = np.load(
              osp.join(self.processed_dir, "val_t_correct_index.npy")
          )
      return self._valid_dict
  
imports: from typing import Optional, Union, Dict
  import os
  import shutil
  import os.path
  import torch
  import numpy
  import pandas
  from ogb.utils.url import decide_download, download_url, extract_zip, makedirs
label_desc: Use image node_id 11 for calling the WikiKG90MDataset obj's underlying member method code with example usage: obj.valid_dict() and returns: self