docstr: Fetches an embedding in the current dataset by name.
  
  Args:
      name:
          The name of the desired embedding.
      ignore_suffix:
          If true, a suffix of the embedding name in the current dataset
          is ignored.
  
  Returns:
      The embedding data.
  
  Raises:
      EmbeddingDoesNotExistError:
          If the name does not match the name of an embedding
          on the server.
docstr_tok: ["Fetches","an","embedding","in","the","current","dataset","by","name",".","Args",":","name",":","The","name","of","the","desired","embedding",".","ignore_suffix",":","If","true",",","a","suffix","of","the","embedding","name","in","the","current","dataset","is","ignored",".","Returns",":","The","embedding","data",".","Raises",":","EmbeddingDoesNotExistError",":","If","the","name","does","not","match","the","name","of","an","embedding","on","the","server","."]
code: def get_embedding_by_name(
      self, name: str, ignore_suffix: bool = True
  ) -> DatasetEmbeddingData:
      """Fetches an embedding in the current dataset by name.
  
      Args:
          name:
              The name of the desired embedding.
          ignore_suffix:
              If true, a suffix of the embedding name in the current dataset
              is ignored.
  
      Returns:
          The embedding data.
  
      Raises:
          EmbeddingDoesNotExistError:
              If the name does not match the name of an embedding
              on the server.
  
      """
      embeddings_on_server: List[
          DatasetEmbeddingData
      ] = self._embeddings_api.get_embeddings_by_dataset_id(
          dataset_id=self.dataset_id
      )
      try:
          if ignore_suffix:
              embedding = next(
                  embedding
                  for embedding in embeddings_on_server
                  if embedding.name.startswith(name)
              )
          else:
              embedding = next(
                  embedding
                  for embedding in embeddings_on_server
                  if embedding.name == name
              )
      except StopIteration:
          raise EmbeddingDoesNotExistError(
              f"Embedding with the specified name "
              f"does not exist on the server: {name}"
          )
      return embedding
  
file_path: lightly/lightly/api/api_workflow_upload_embeddings.py
imports: import csv
  import io
  import tempfile
  import urllib.request
  from datetime import datetime
  from typing import List
  from urllib.request import Request
  from lightly.api.utils import retry
  from lightly.openapi_generated.swagger_client.models import DatasetEmbeddingData, DimensionalityReductionMethod, Trigger2dEmbeddingJobRequest, WriteCSVUrlData
  from lightly.utils import io
label_desc: Use image node_id 3 for calling the _UploadEmbeddingsMixin obj's underlying member method code with example usage: obj.get_embedding_by_name(name, ignore_suffix) and returns: embedding