class_docstr: Test emEeddingManager for loading embedding files and computing embeddings from waveforms
class_docstr_tok: ["Test","emEeddingManager","for","loading","embedding","files","and","computing","embeddings","from","waveforms"]
code: def test_embedding_file_processing(
      self,
  ):  # pylint: disable=no-self-use
      manager = EmbeddingManager(
          embedding_file_path=embeddings_file_pth_path
      )
      # test embedding querying
      embedding = manager.get_embedding_by_clip(manager.clip_ids[0])
      assert len(embedding) == 256
      embeddings = manager.get_embeddings_by_name(
          manager.embedding_names[0]
      )
      assert len(embeddings[0]) == 256
      embedding1 = manager.get_mean_embedding(
          manager.embedding_names[0], num_samples=2, randomize=True
      )
      assert len(embedding1) == 256
      embedding2 = manager.get_mean_embedding(
          manager.embedding_names[0], num_samples=2, randomize=False
      )
      assert len(embedding2) == 256
      assert np.sum(np.array(embedding1) - np.array(embedding2)) != 0
  
file_path: TTS/tests/aux_tests/test_embedding_manager.py
imports: import os
  import unittest
  import numpy
  import torch
  from trainer.io import save_checkpoint
  from tests import get_tests_input_path
  from TTS.config import load_config
  from TTS.encoder.utils.generic_utils import setup_encoder_model
  from TTS.tts.utils.managers import EmbeddingManager
  from TTS.utils.audio import AudioProcessor
label_desc: Use image node_id 2 for calling the EmbeddingManagerTest obj's underlying member method code with example usage: obj.test_embedding_file_processing() without return types