    def test_embedding_avg_time(self, pipeline_name, embedding_size):
        """
        target: test embedding for performance scenario
        method: embedding N times and calculate the average embedding time 
        expected: return embeddings
        """
        embedding_pipeline = pipeline(pipeline_name)
        avg_time = 0
        time_cost = []
        num = 10
        for i in range(num):
            try:
                time_start = time.time()
                embedding = embedding_pipeline(data_path + "towhee_test_audio_1.wav")
                time_cost.append(time.time() - time_start)
                assert embedding[0][0][0].size == embedding_size
            except Exception as e:
                print("Raise Exception: %s" % e)
            print("embedding audios for %d round" % (i+1))
        time_cost = np.array(time_cost)
        total_time = np.sum(time_cost)
        print(f"The total time is", total_time)
        avg_time = round(total_time/num, 3)
        print(f"The average time is", avg_time)
        
        return True
target: test embedding for performance scenario
method: embedding N times and calculate the average embedding time
expected: return embeddings
tests/testcases/test_audio_embedding.py