code: def onehot_encoding(x, unique_vals):
      E = np.zeros((len(x), len(unique_vals)))
      for i, val in enumerate(x):
          E[i, unique_vals.index(val)] = 1.0
      return E
  
file_path: pytorch_geometric_temporal/torch_geometric_temporal/dataset/twitter_tennis.py
imports: import json
  import urllib
  import numpy
  from ..signal import DynamicGraphTemporalSignal
label_desc: Use image node_id 3 for calling a global function with example usage: onehot_encoding(x, unique_vals) and returns: E