code: def test_embedding_also_sets_trailing_whitespaces(self, args):
      if not self.is_token_embedding:
          pytest.skip("The test is only valid for token embeddings")
      embeddings = self.create_embedding_with_args(args)
  
      sentence: Sentence = Sentence(["hello", " ", "hm", " "])
      embeddings.embed(sentence)
      names = embeddings.get_names()
      for token in sentence:
          assert (
              len(token.get_embedding(names))
              == embeddings.embedding_length
          )
  
file_path: flair/tests/embedding_test_utils.py
imports: from typing import Any, Dict, List, Optional, Type
  import pytest
  import torch
  from flair.data import Sentence
  from flair.embeddings import Embeddings
  from flair.embeddings.base import load_embeddings
label_desc: Use image node_id 4 for calling the BaseEmbeddingsTest obj's underlying member method code with example usage: obj.test_embedding_also_sets_trailing_whitespaces(args) without return types