code: def read_static_embed(fp):
      """
  
      :param str fp: embedding的路径
      :return: {}, key是word, value是vector
      """
      embed = {}
      with open(fp, "r") as f:
          for line in f:
              line = line.strip()
              if line:
                  parts = line.split()
                  vector = list(map(float, parts[1:]))
                  word = parts[0]
                  embed[word] = vector
      return embed
  
file_path: fastNLP/tests/embeddings/torch/test_static_embedding.py
imports: import pytest
  import os
  from fastNLP.embeddings.torch import StaticEmbedding
  from fastNLP import Vocabulary
  from fastNLP.envs.imports import _NEED_IMPORT_TORCH
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: read_static_embed(fp) and returns: embed