code: def test_norm2(self):
      # 测试对所有都norm
      vocab = Vocabulary().add_word_lst(["the", "a", "notinfile"])
      embed = StaticEmbedding(
          vocab,
          model_dir_or_name=tests_folder
          + "/helpers/data/embedding/small_static_embedding/"
          "glove.6B.50d_test.txt",
          normalize=True,
      )
      assert (
          round(torch.norm(embed(torch.LongTensor([[2]]))).item(), 4)
          == 1
      )
      assert (
          round(torch.norm(embed(torch.LongTensor([[4]]))).item(), 4)
          == 1
      )
  
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 2 for calling the TestLoad obj's underlying member method code with example usage: obj.test_norm2() without return types