docstr: Overwrite this method if it is more complex to load an embedding by name.
docstr_tok: ["Overwrite","this","method","if","it","is","more","complex","to","load","an","embedding","by","name","."]
code: def create_embedding_from_name(self, name: str):
      """Overwrite this method if it is more complex to load an embedding by name."""
      assert self.name_field is not None
      kwargs = dict(self.default_args)
      kwargs.pop(self.name_field)
      return self.embedding_cls(name, **kwargs)
  
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 1 for calling the BaseEmbeddingsTest obj's underlying member method code with example usage: obj.create_embedding_from_name(name) and returns: self