code: def load_feat_and_score(mode):
      # mode = "valid"
      feat_dir = "feature_output/%s%s_feats/" % (postfix, mode)
      rrt_feat = np.load(feat_dir + "rrt_feat.npy", mmap_mode="r")
      h2t_t2h_feat = np.load(
          feat_dir + "h2t_t2h_feat.npy", mmap_mode="r"
      )
      t2h_h2t_feat = np.load(
          feat_dir + "t2h_h2t_feat.npy", mmap_mode="r"
      )
      h2t_h2t_feat = np.load(
          feat_dir + "h2t_h2t_feat.npy", mmap_mode="r"
      )
      hht_feat_byprob = np.load(
          feat_dir + "hht_feat.npy", mmap_mode="r"
      )
      r2t_h2r_feat = np.load(
          feat_dir + "r2t_h2r_feat.npy", mmap_mode="r"
      )
      r2t_feat = np.load(feat_dir + "r2t_feat.npy", mmap_mode="r")
      rrh_feat = np.load(feat_dir + "rrh_feat.npy", mmap_mode="r")
      rt_count = np.load(feat_dir + "rt_feat.npy", mmap_mode="r")
      ht_count = np.load(feat_dir + "ht_feat.npy", mmap_mode="r")
      feats = [
          rrt_feat,
          h2t_t2h_feat,
          t2h_h2t_feat,
          h2t_h2t_feat,
          hht_feat_byprob,
          r2t_h2r_feat,
          r2t_feat,
          rrh_feat,
          rt_count,
          ht_count,
      ]
      # model scores
      score_dir = "model_output/%s" % postfix
      ote_names = [
          "ote40/OTE_wikikg90m_concat_d_200_g_12.00",
          "ote20_hd240/OTE_wikikg90m_concat_d_200_g_12.00",
          "ote20_lr0.3/OTE_wikikg90m_concat_d_200_g_12.00",
          "ote20_lrd2w/OTE_wikikg90m_concat_d_200_g_12.00",
          "ote20_lrd5k/OTE_wikikg90m_concat_d_200_g_12.00",
          "ote20_mlplr4e-5/OTE_wikikg90m_concat_d_200_g_12.00",
          "ote20_bs1.2k/OTE_wikikg90m_concat_d_200_g_12.00",
          "ote20_gamma10/OTE_wikikg90m_concat_d_200_g_10.00",
          "ote20_gamma14/OTE_wikikg90m_concat_d_200_g_14.00",
          "ote20/OTE_wikikg90m_concat_d_200_g_12.00",
      ]
      ote_scores = [
          np.load(
              score_dir + name + "/%s_scores.npy" % mode, mmap_mode="r"
          )
          for name in ote_names
      ]
      transe_score = np.load(
          score_dir
          + "/TransE/TransE_l2_wikikg90m_concat_d_200_g_8.00/%s_scores.npy"
          % mode,
          mmap_mode="r",
      )
      transe_ps_score = np.load(
          score_dir + "/TransE/PostSmoothing/%s_scores.npy" % mode,
          mmap_mode="r",
      )
      rotate_score = np.load(
          score_dir
          + "/RotatE/RotatE_wikikg90m_concat_d_100_g_8.00/%s_scores.npy"
          % mode,
          mmap_mode="r",
      )
      rotate_ps_score = np.load(
          score_dir + "/RotatE/PostSmoothing/%s_scores.npy" % mode,
          mmap_mode="r",
      )
      quate_score = np.load(
          score_dir
          + "/QuatE/QuatE_wikikg90m_concat_d_200_g_8.00/%s_scores.npy"
          % mode,
          mmap_mode="r",
      )
      deepwalk_score = np.load(
          score_dir + "/Deepwalk/Deepwalk/%s_scores.npy" % mode,
          mmap_mode="r",
      )
      scores = ote_scores + [
          transe_score,
          transe_ps_score,
          rotate_score,
          rotate_ps_score,
          quate_score,
          deepwalk_score,
      ]
      return feats, scores
  
file_path: PGL/examples/kddcup2021/WikiKG90M/ensemble/ensemble.py
imports: import pgl
  import numpy
  from tqdm import tqdm
  import pandas
  import torch
  from ogb.lsc import WikiKG90MDataset, WikiKG90MEvaluator
label_desc: Use image node_id 1 for calling a global function with example usage: load_feat_and_score(mode) and returns: feats,  scores