code: def test_embedding_works_with_weird_text(self, text):
      embeddings = self.create_embedding_with_args(self.default_args)
      embedding_names = embeddings.get_names()
      sentence = Sentence(text)
      embeddings.embed(sentence)
  
      if self.is_token_embedding:
          for token in sentence:
              assert (
                  len(token.get_embedding(embedding_names))
                  == embeddings.embedding_length
              )
      if self.is_document_embedding:
          assert (
              len(sentence.get_embedding(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 3 for calling the BaseEmbeddingsTest obj's underlying member method code with example usage: obj.test_embedding_works_with_weird_text(text) without return types