code: def get_indegree(n_entities, edges):
      indegrees = np.zeros(n_entities)
      for eid in range(n_entities):
          h_index = np.where(edges[:, 2] == eid)
          indegrees[eid] = len(h_index[0]) + 1
      indegrees = indegrees.reshape((-1, 1))
      return indegrees
  
file_path: PGL/apps/Graph4KG/examples/REP/rep.py
imports: import os
  import time
  import logging
  import argparse
  import numpy
  from tqdm import tqdm
  import pgl
  from ote_orth import OrthOTE
label_desc: Use image node_id 3 for calling a global function with example usage: get_indegree(n_entities, edges) and returns: indegrees