code: def load_embeddings(embd_dir: str) -> dict:
      embd_dic = OrderedDict(np.load(embd_dir))
      embd_dic2 = {}
      for k, v in embd_dic.items():
          if len(v.shape) == 1:
              v = v[None, :]
          embd_dic2[k] = torch.nn.functional.normalize(
              torch.from_numpy(v), p=2, dim=1
          ).numpy()
  
      return embd_dic2
  
imports: import os
  import sys
  from collections import OrderedDict
  import numpy
  import torch
label_desc: Use image node_id 1 for calling a global function with example usage: load_embeddings(embd_dir) and returns: embd_dic2