code: def apply_pc(weighted_emb, u):
      return torch.cat(
          [
              e - torch.matmul(u, e.unsqueeze(-1)).squeeze()
              for e in weighted_emb.split(2048, 0)
          ]
      )
  
imports: import json
  import os
  import pickle
  from collections import Counter, OrderedDict
  import numpy
  import torch
  import torch.nn
  import torch.nn.functional
  from gensim.models import FastText
  from nltk.tokenize import sent_tokenize, word_tokenize
  from scipy.linalg import eig
  from skimage.filters import threshold_yen
label_desc: Use image node_id 6 for calling a global function with example usage: apply_pc(weighted_emb, u) and returns: torch