docstr: Fetches embedding data with the given name for this dataset.
  
  Args:
      name: Embedding name.
  
  Returns:
      Embedding data.
  
  Raises:
      ValueError:
          If no embedding with this name exists.
  
  Examples:
      >>> client = ApiWorkflowClient(token="MY_AWESOME_TOKEN")
      >>>
      >>> # Already created some Lightly Worker runs with this dataset
      >>> client.set_dataset_id_by_name("my-dataset")
      >>> client.get_embedding_data_by_name("embedding-data")
      [{'created_at': 1654756552401,
       'id': '646f346004d77b4e1424e67e',
       'is2d': False,
       'is_processed': True,
       'name': 'embedding-data'}]
docstr_tok: ["Fetches","embedding","data","with","the","given","name","for","this","dataset",".","Args",":","name",":","Embedding","name",".","Returns",":","Embedding","data",".","Raises",":","ValueError",":","If","no","embedding","with","this","name","exists",".","Examples",":",">",">",">","client","=","ApiWorkflowClient","(","token=","''","MY_AWESOME_TOKEN","''",")",">",">",">",">",">",">","#","Already","created","some","Lightly","Worker","runs","with","this","dataset",">",">",">","client.set_dataset_id_by_name","(","``","my-dataset","''",")",">",">",">","client.get_embedding_data_by_name","(","``","embedding-data","''",")","[","{","'created_at","'",":","1654756552401",",","'id","'",":","'646f346004d77b4e1424e67e","'",",","'is2d","'",":","False",",","'is_processed","'",":","True",",","'name","'",":","'embedding-data","'","}","]"]
code: def get_embedding_data_by_name(
      self, name: str
  ) -> DatasetEmbeddingData:
      """Fetches embedding data with the given name for this dataset.
  
      Args:
          name: Embedding name.
  
      Returns:
          Embedding data.
  
      Raises:
          ValueError:
              If no embedding with this name exists.
  
      Examples:
          >>> client = ApiWorkflowClient(token="MY_AWESOME_TOKEN")
          >>>
          >>> # Already created some Lightly Worker runs with this dataset
          >>> client.set_dataset_id_by_name("my-dataset")
          >>> client.get_embedding_data_by_name("embedding-data")
          [{'created_at': 1654756552401,
           'id': '646f346004d77b4e1424e67e',
           'is2d': False,
           'is_processed': True,
           'name': 'embedding-data'}]
      """
      for embedding_data in self.get_all_embedding_data():
          if embedding_data.name == name:
              return embedding_data
      raise ValueError(
          f"There are no embeddings with name '{name}' for dataset with id "
          f"'{self.dataset_id}'."
      )
  
imports: import io
  import os
  import urllib.request
  import warnings
  from concurrent.futures.thread import ThreadPoolExecutor
  from typing import Dict, List, Optional
  from urllib.request import Request
  import tqdm
  from PIL import Image
  from lightly.api import download, utils
  from lightly.api.bitmask import BitMask
  from lightly.openapi_generated.swagger_client.models import DatasetEmbeddingData, ImageType
  from lightly.utils.hipify import bcolors
label_desc: Use image node_id 3 for calling the _DownloadDatasetMixin obj's underlying member method code with example usage: obj.get_embedding_data_by_name(name) and returns: embedding_data